Skip to content

Commit

Permalink
SDL/Texture: made info struct take a texture ptr directly
Browse files Browse the repository at this point in the history
Will allow me to construct one directly from a pointer if I don't have a wrapper object.
  • Loading branch information
Vultraz committed Jul 31, 2017
1 parent 2fae720 commit 23ba4c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sdl/texture.cpp
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/sdl/texture.hpp
Expand Up @@ -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;
Expand Down

0 comments on commit 23ba4c7

Please sign in to comment.