From 55d185ef9c745490916cd3c73efdb79ca551984c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 2 Jul 2021 19:51:22 +1000 Subject: [PATCH] [client] opengl: no need to re-bind the already bound texture --- client/renderers/OpenGL/opengl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/client/renderers/OpenGL/opengl.c b/client/renderers/OpenGL/opengl.c index d4afca76..3be0e8d5 100644 --- a/client/renderers/OpenGL/opengl.c +++ b/client/renderers/OpenGL/opengl.c @@ -1381,7 +1381,6 @@ static bool draw_frame(struct Inst * this) (this->format.width > this->destRect.w) || (this->format.height > this->destRect.h)); - glBindTexture(GL_TEXTURE_2D, this->frames[this->texIndex]); if (mipmap) { glGenerateMipmap(GL_TEXTURE_2D);