[client] opengl: no need to re-bind the already bound texture

This commit is contained in:
Geoffrey McRae 2021-07-02 19:51:22 +10:00
parent 9cbc255448
commit 55d185ef9c

View File

@ -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);