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/normalopenglgraphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/normalopenglgraphics.cpp') diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp index a4b9e8c07..9526d4ee3 100644 --- a/src/normalopenglgraphics.cpp +++ b/src/normalopenglgraphics.cpp @@ -33,6 +33,7 @@ #include "resources/image.h" #include "resources/openglimagehelper.h" +#include "utils/sdlcheckutils.h" #include "utils/stringutils.h" #include @@ -1113,7 +1114,7 @@ SDL_Surface* NormalOpenGLGraphics::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-60-g2f50