Skip to content

Commit

Permalink
Fix initialization of SDLImageLoader::mRenderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Dec 4, 2023
1 parent 5cba1e2 commit 904d1eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/guisan/sdl/sdlimageloader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/sdl/sdlimageloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@

namespace gcn
{
SDLImageLoader::SDLImageLoader() : mRenderer(NULL)
{}

Image* SDLImageLoader::load(const std::string& filename,
bool convertToDisplayFormat)
{
Expand Down

0 comments on commit 904d1eb

Please sign in to comment.