mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-25 23:59:04 +00:00
textureData is only needed when SDL is built with YUV support
This commit is contained in:
@@ -1602,8 +1602,10 @@ static int GL_BindTexture(SDL_Renderer *renderer, SDL_Texture *texture, float *t
|
||||
static int GL_UnbindTexture(SDL_Renderer *renderer, SDL_Texture *texture)
|
||||
{
|
||||
GL_RenderData *data = (GL_RenderData *)renderer->driverdata;
|
||||
GL_TextureData *texturedata = (GL_TextureData *)texture->driverdata;
|
||||
const GLenum textype = data->textype;
|
||||
#if SDL_HAVE_YUV
|
||||
GL_TextureData *texturedata = (GL_TextureData *)texture->driverdata;
|
||||
#endif
|
||||
|
||||
GL_ActivateRenderer(renderer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user