gsdx-ogl: add an assertion that will save me

This commit is contained in:
Gregory Hainaut 2015-07-24 20:00:25 +02:00
parent 46a1525668
commit 7b9fa8fbe5
1 changed files with 1 additions and 0 deletions

View File

@ -1273,6 +1273,7 @@ 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;