diff --git a/src/sdl/texture.cpp b/src/sdl/texture.cpp index 2f2d068257c2..381366f403b4 100644 --- a/src/sdl/texture.cpp +++ b/src/sdl/texture.cpp @@ -100,7 +100,7 @@ void texture::destroy_texture() } } -texture::info::info(const texture& t) +texture::info::info(SDL_Texture* t) : format(0) , access(0) , w(0) diff --git a/src/sdl/texture.hpp b/src/sdl/texture.hpp index 75ea5a62f886..470a61bd94a4 100644 --- a/src/sdl/texture.hpp +++ b/src/sdl/texture.hpp @@ -43,7 +43,7 @@ class texture /** Small wrapper that queries metadata about the provided texture. */ struct info { - explicit info(const texture& t); + explicit info(SDL_Texture* t); Uint32 format; int access;