From 86e889a1eee087d3808bbe6c5cfdf1d7cd4698bd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 15 Dec 2015 19:36:26 +0300 Subject: Replace all left OpenGL calls in mobile and modern backends to defines. --- src/render/mobileopenglgraphics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/render/mobileopenglgraphics.cpp') diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 4eecfa232..0b3d4e4dc 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -965,8 +965,8 @@ SDL_Surface* MobileOpenGLGraphics::getScreenshot() // Grap the pixel buffer and write it to the SDL surface mglGetIntegerv(GL_PACK_ALIGNMENT, &pack); - glPixelStorei(GL_PACK_ALIGNMENT, 1); - glReadPixels(0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, screenshot->pixels); + mglPixelStorei(GL_PACK_ALIGNMENT, 1); + mglReadPixels(0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, screenshot->pixels); // Flip the screenshot, as OpenGL has 0,0 in bottom left const int h2 = h / 2; @@ -987,7 +987,7 @@ SDL_Surface* MobileOpenGLGraphics::getScreenshot() if (config.getBoolValue("usefbo")) graphicsManager.deleteFBO(&mFbo); - glPixelStorei(GL_PACK_ALIGNMENT, pack); + mglPixelStorei(GL_PACK_ALIGNMENT, pack); if (SDL_MUSTLOCK(screenshot)) SDL_UnlockSurface(screenshot); -- cgit v1.2.3-60-g2f50