summaryrefslogtreecommitdiff
path: root/src/mobileopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-26 16:09:58 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-26 16:52:08 +0300
commit929aeb1591e739588cd8cf629e7d7ac5a95261b1 (patch)
tree2b61b477d0e0ffed31a90ba2d6c019da926282aa /src/mobileopenglgraphics.cpp
parentb661524e8b7b41cec237492ecd52fdda7b9be394 (diff)
downloadplus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz
plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2
plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz
plus-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip
add surface allocation debug code.
Diffstat (limited to 'src/mobileopenglgraphics.cpp')
-rw-r--r--src/mobileopenglgraphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mobileopenglgraphics.cpp b/src/mobileopenglgraphics.cpp
index e2991eddc..c53de9e0e 100644
--- a/src/mobileopenglgraphics.cpp
+++ b/src/mobileopenglgraphics.cpp
@@ -34,6 +34,7 @@
#include "resources/image.h"
#include "resources/openglimagehelper.h"
+#include "utils/sdlcheckutils.h"
#include "utils/stringutils.h"
#include <SDL.h>
@@ -903,7 +904,7 @@ SDL_Surface* MobileOpenGLGraphics::getScreenshot()
const int w = mRect.w - (mRect.w % 4);
GLint pack = 1;
- SDL_Surface *const screenshot = SDL_CreateRGBSurface(
+ SDL_Surface *const screenshot = MSDL_CreateRGBSurface(
SDL_SWSURFACE, w, h, 24,
0xff0000, 0x00ff00, 0x0000ff, 0x000000);