summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 31e38d6d..2d5cbe82 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -32,7 +32,11 @@ bool Image::mUseOpenGL = false;
#endif
Image::Image(const std::string &idPath, SDL_Surface *image):
- Resource(idPath), mImage(image),
+ Resource(idPath),
+#ifdef USE_OPENGL
+ mGLImage(0),
+#endif
+ mImage(image),
mAlpha(1.0f)
{
mBounds.x = 0;