diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-15 19:36:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-15 19:36:26 +0300 |
commit | 86e889a1eee087d3808bbe6c5cfdf1d7cd4698bd (patch) | |
tree | 1264beca751c5662654626b30a2c0a35f45779cc /src/render/mobileopengl2graphics.cpp | |
parent | fc03df9053fa92f6482779f8e67e699cdc5536c1 (diff) | |
download | mv-86e889a1eee087d3808bbe6c5cfdf1d7cd4698bd.tar.gz mv-86e889a1eee087d3808bbe6c5cfdf1d7cd4698bd.tar.bz2 mv-86e889a1eee087d3808bbe6c5cfdf1d7cd4698bd.tar.xz mv-86e889a1eee087d3808bbe6c5cfdf1d7cd4698bd.zip |
Replace all left OpenGL calls in mobile and modern backends to defines.
Diffstat (limited to 'src/render/mobileopengl2graphics.cpp')
-rw-r--r-- | src/render/mobileopengl2graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp index 8fdb43655..979d17224 100644 --- a/src/render/mobileopengl2graphics.cpp +++ b/src/render/mobileopengl2graphics.cpp @@ -887,8 +887,8 @@ SDL_Surface* MobileOpenGL2Graphics::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; @@ -909,7 +909,7 @@ SDL_Surface* MobileOpenGL2Graphics::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); |