diff --git a/src/OpenGL.cpp b/src/OpenGL.cpp index e0d9a310..c502f8c3 100644 --- a/src/OpenGL.cpp +++ b/src/OpenGL.cpp @@ -1112,7 +1112,7 @@ void OGLRender::drawTexturedRect(const TexturedRectParams & _params) } currentCombiner()->updateRenderState(); - if (RSP.cmd == 0xE4 && texturedRectSpecial != NULL && texturedRectSpecial(_params)) { + if (RSP.cmd == G_TEXRECT && texturedRectSpecial != NULL && texturedRectSpecial(_params)) { gSP.changed |= CHANGED_GEOMETRYMODE; return; } diff --git a/src/Turbo3D.cpp b/src/Turbo3D.cpp index 8bdbc38a..794f93bc 100644 --- a/src/Turbo3D.cpp +++ b/src/Turbo3D.cpp @@ -62,7 +62,7 @@ void Turbo3D_ProcessRDP(u32 _cmds) w0 = ((u32*)RDRAM)[addr++]; w1 = ((u32*)RDRAM)[addr++]; RSP.cmd = _SHIFTR( w0, 24, 8 ); - if (RSP.cmd == 0xE4 || RSP.cmd == 0xE5) { + if (RSP.cmd == G_TEXRECT || RSP.cmd == G_TEXRECTFLIP) { RDP.w2 = ((u32*)RDRAM)[addr++]; RDP.w3 = ((u32*)RDRAM)[addr++]; } diff --git a/src/ZSort.cpp b/src/ZSort.cpp index f26b6cca..a9fc8ba8 100644 --- a/src/ZSort.cpp +++ b/src/ZSort.cpp @@ -46,7 +46,7 @@ void ZSort_RDPCMD( u32, u32 _w1 ) if (RSP.cmd == 0xDF) break; u32 w1 = ((u32*)RDRAM)[addr++]; - if (RSP.cmd == 0xE4 || RSP.cmd == 0xE5) { + if (RSP.cmd == G_TEXRECT || RSP.cmd == G_TEXRECTFLIP) { addr++; RDP.w2 = ((u32*)RDRAM)[addr++]; addr++;