mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: don't bind the 0 texture to be compatible with the Nvidia debugger
This commit is contained in:
parent
84744d429e
commit
87dcb9336f
|
@ -1260,10 +1260,13 @@ void GSDeviceOGL::IASetPrimitiveTopology(GLenum topology)
|
||||||
void GSDeviceOGL::PSSetShaderResource(int i, GSTexture* sr)
|
void GSDeviceOGL::PSSetShaderResource(int i, GSTexture* sr)
|
||||||
{
|
{
|
||||||
ASSERT(i < (int)countof(GLState::tex_unit));
|
ASSERT(i < (int)countof(GLState::tex_unit));
|
||||||
GLuint id = sr ? sr->GetID() : 0;
|
// Note: Nvidia debgger doesn't support the id 0 (ie the NULL texture)
|
||||||
if (GLState::tex_unit[i] != id) {
|
if (sr) {
|
||||||
GLState::tex_unit[i] = id;
|
GLuint id = sr->GetID();
|
||||||
gl_BindTextureUnit(i, id);
|
if (GLState::tex_unit[i] != id) {
|
||||||
|
GLState::tex_unit[i] = id;
|
||||||
|
gl_BindTextureUnit(i, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue