diff --git a/renderer/HardwareOpenGL.cpp b/renderer/HardwareOpenGL.cpp index add3b55c..2e6a1600 100644 --- a/renderer/HardwareOpenGL.cpp +++ b/renderer/HardwareOpenGL.cpp @@ -1664,11 +1664,15 @@ void gpu_RenderPolygon(PosColorUVVertex *vData, uint32_t nv) { dglDisableClientState(GL_TEXTURE_COORD_ARRAY); } + oglClientActiveTextureARB(GL_TEXTURE0_ARB + 1); + dglDisableClientState(GL_TEXTURE_COORD_ARRAY); + // draw the data in the arrays dglDrawArrays(GL_POLYGON, 0, nv); if (gpu_state.cur_texture_quality == 0) { // re-enable textures + oglClientActiveTextureARB(GL_TEXTURE0_ARB + 0); dglEnableClientState(GL_TEXTURE_COORD_ARRAY); } @@ -1682,6 +1686,7 @@ void gpu_RenderPolygonUV2(PosColorUV2Vertex *vData, uint32_t nv) { oglClientActiveTextureARB(GL_TEXTURE0_ARB + 0); dglTexCoordPointer(4, GL_FLOAT, sizeof(*vData), &vData->uv0); oglClientActiveTextureARB(GL_TEXTURE0_ARB + 1); + dglEnableClientState(GL_TEXTURE_COORD_ARRAY); dglTexCoordPointer(4, GL_FLOAT, sizeof(*vData), &vData->uv1); dglDrawArrays(GL_POLYGON, 0, nv);