X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=source%2Fgles2rice%2Fsrc%2FOGLExtRender.cpp;h=6a4f3385c6035643e46cde88b6ae0504537ee518;hb=6c7533683f3b805c127b433aa5a7c8b1ce0c775b;hp=b87c80c88fe8ffb2fd7727404e930d0314d1d48e;hpb=f8c31034f942f1361d0435c01fda7c0f4a7231a0;p=mupen64plus-pandora.git diff --git a/source/gles2rice/src/OGLExtRender.cpp b/source/gles2rice/src/OGLExtRender.cpp index b87c80c..6a4f338 100644 --- a/source/gles2rice/src/OGLExtRender.cpp +++ b/source/gles2rice/src/OGLExtRender.cpp @@ -122,6 +122,8 @@ void COGLExtRender::SetTexWrapS(int unitno,GLuint flag) static GLuint mtex[8]; if( m_curBoundTex[unitno] != mtex[unitno] || mflag[unitno] != flag ) { + pglActiveTexture(GL_TEXTURE0_ARB+unitno); + OPENGL_CHECK_ERRORS; mtex[unitno] = m_curBoundTex[0]; mflag[unitno] = flag; glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, flag); @@ -173,8 +175,6 @@ void COGLExtRender::SetTextureUFlag(TextureUVFlag dwFlag, uint32 dwTile) { if( m_textureUnitMap[textureNo] == tex ) { - pglActiveTexture(GL_TEXTURE0_ARB+textureNo); - OPENGL_CHECK_ERRORS; COGLTexture* pTexture = g_textures[(gRSP.curTile+tex)&7].m_pCOGLTexture; if( pTexture ) {