diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index b40859fc6e..88e1692383 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -1260,10 +1260,13 @@ void GSDeviceOGL::IASetPrimitiveTopology(GLenum topology) void GSDeviceOGL::PSSetShaderResource(int i, GSTexture* sr) { ASSERT(i < (int)countof(GLState::tex_unit)); - GLuint id = sr ? sr->GetID() : 0; - if (GLState::tex_unit[i] != id) { - GLState::tex_unit[i] = id; - gl_BindTextureUnit(i, id); + // Note: Nvidia debgger doesn't support the id 0 (ie the NULL texture) + if (sr) { + GLuint id = sr->GetID(); + if (GLState::tex_unit[i] != id) { + GLState::tex_unit[i] = id; + gl_BindTextureUnit(i, id); + } } }