diff --git a/include/guisan/sdl/sdlimageloader.hpp b/include/guisan/sdl/sdlimageloader.hpp index 1159d51..23ee5ba 100644 --- a/include/guisan/sdl/sdlimageloader.hpp +++ b/include/guisan/sdl/sdlimageloader.hpp @@ -72,8 +72,9 @@ namespace gcn class GCN_EXTENSION_DECLSPEC SDLImageLoader : public ImageLoader { public: + SDLImageLoader(); + void setRenderer(SDL_Renderer* renderer); - void setRenderer(SDL_Renderer* renderer); // Inherited from ImageLoader virtual Image* load(const std::string& filename, bool convertToDisplayFormat = true); diff --git a/src/sdl/sdlimageloader.cpp b/src/sdl/sdlimageloader.cpp index 992d2ed..7bfb512 100644 --- a/src/sdl/sdlimageloader.cpp +++ b/src/sdl/sdlimageloader.cpp @@ -67,6 +67,9 @@ namespace gcn { + SDLImageLoader::SDLImageLoader() : mRenderer(NULL) + {} + Image* SDLImageLoader::load(const std::string& filename, bool convertToDisplayFormat) {