From 3693a51cbb9c1efef9b6604775f41c903c14fcd4 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Wed, 4 May 2016 16:30:15 +0000 Subject: [PATCH] Make sure texture is bound to correct texture unit, stop flashing micro textures in daytona --- Src/Graphics/New3D/Texture.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Src/Graphics/New3D/Texture.cpp b/Src/Graphics/New3D/Texture.cpp index a7af892..bc7522f 100644 --- a/Src/Graphics/New3D/Texture.cpp +++ b/Src/Graphics/New3D/Texture.cpp @@ -227,8 +227,6 @@ UINT32 Texture::UploadTexture(const UINT16* src, UINT8* scratch, int format, boo } glPixelStorei(GL_UNPACK_ALIGNMENT, 4); // rgba is always 4 byte aligned - glActiveTexture(GL_TEXTURE0); // activate correct texture unit - glGenTextures(1, &m_textureID); glBindTexture(GL_TEXTURE_2D, m_textureID);