summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r--src/normalopenglgraphics.cpp3
1 files changed, 2 insertions, 1 deletions
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 <SDL.h>
@@ -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);