From 929aeb1591e739588cd8cf629e7d7ac5a95261b1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Aug 2013 16:09:58 +0300 Subject: add surface allocation debug code. --- src/mobileopenglgraphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mobileopenglgraphics.cpp') 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 @@ -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); -- cgit v1.2.3-70-g09d2