diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 410dd8f5c3..a7abdfecca 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -2563,10 +2563,8 @@ static uintptr_t gl_load_texture(void *video_data, void *data, static void gl_unload_texture(void *video_data, uintptr_t data, bool threaded) { - GLuint glid; if (!data) return; - glid = (GLuint)data; #ifdef HAVE_THREADS if (threaded)