From bc36f6276bcce63026b89da30d83f0e022b06efd Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sun, 9 Jul 2017 15:58:07 +1100 Subject: [PATCH] SDL/Texture: made info struct take a texture ptr directly Will allow me to construct one directly from a pointer if I don't have a wrapper object. --- src/sdl/texture.cpp | 2 +- src/sdl/texture.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;