mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: add an assertion that will save me
This commit is contained in:
parent
46a1525668
commit
7b9fa8fbe5
|
@ -1273,6 +1273,7 @@ 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));
|
||||||
GLuint id = sr ? sr->GetID() : 0;
|
GLuint id = sr ? sr->GetID() : 0;
|
||||||
if (GLState::tex_unit[i] != id) {
|
if (GLState::tex_unit[i] != id) {
|
||||||
GLState::tex_unit[i] = id;
|
GLState::tex_unit[i] = id;
|
||||||
|
|
Loading…
Reference in New Issue