summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/image.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 2798fa05..3f2e9560 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -211,8 +211,13 @@ Image* Image::load(const char* buffer, const unsigned int bufferSize)
// Now free the SDL_RWops data
//SDL_FreeRW(rw);
-
+
+#ifndef USE_OPENGL
return new Image(texture);
+#else
+ return new Image(0, 0, 0, 0, 0);
+ // Warning: need implementation to use with OpenGL
+#endif
}
void Image::unload()