gsdx-ogl: unattach palette to avoid noise in debug

This commit is contained in:
Gregory Hainaut 2015-06-05 22:40:30 +02:00
parent 23f8203a22
commit 0518aaedc9
1 changed files with 4 additions and 0 deletions

View File

@ -596,6 +596,10 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
dev->PSSetShaderResources(tex->m_texture, tex->m_palette);
} else if (tex->m_texture) {
dev->PSSetShaderResource(0, tex->m_texture);
#ifdef ENABLE_OGL_DEBUG
// Unattach texture to avoid noise in debugger
dev->PSSetShaderResource(1, NULL);
#endif
}
}