diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-26 16:09:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-26 16:52:08 +0300 |
commit | 929aeb1591e739588cd8cf629e7d7ac5a95261b1 (patch) | |
tree | 2b61b477d0e0ffed31a90ba2d6c019da926282aa /src/safeopenglgraphics.cpp | |
parent | b661524e8b7b41cec237492ecd52fdda7b9be394 (diff) | |
download | mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.gz mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.bz2 mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.tar.xz mv-929aeb1591e739588cd8cf629e7d7ac5a95261b1.zip |
add surface allocation debug code.
Diffstat (limited to 'src/safeopenglgraphics.cpp')
-rw-r--r-- | src/safeopenglgraphics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/safeopenglgraphics.cpp b/src/safeopenglgraphics.cpp index fcb97a398..ef415c5c4 100644 --- a/src/safeopenglgraphics.cpp +++ b/src/safeopenglgraphics.cpp @@ -33,6 +33,8 @@ #include "resources/image.h" #include "resources/openglimagehelper.h" +#include "utils/sdlcheckutils.h" + #include <SDL.h> #include "debug.h" @@ -440,7 +442,7 @@ SDL_Surface* SafeOpenGLGraphics::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); if (!screenshot) |