gsdx-ogl: save the texture state

This commit is contained in:
Gregory Hainaut 2015-04-30 09:57:30 +02:00
parent 0ab0c6cfba
commit f0181d98fd
1 changed files with 1 additions and 0 deletions

View File

@ -1044,6 +1044,7 @@ void GSDeviceOGL::PSSetShaderResource(int i, GSTexture* sr)
{
GLuint id = static_cast<GSTextureOGL*>(sr)->GetID();
if (GLState::tex_unit[i] != id) {
GLState::tex_unit[i] = id;
gl_BindTextureUnit(i, id);
}
}