diff options
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 7 |
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() |