1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Code cleanup: replace texrect opcode by symbolic name.

This commit is contained in:
Sergey Lipskiy 2016-04-14 12:14:10 +06:00
parent 1611e8dd61
commit 7c7a7112e7
3 changed files with 3 additions and 3 deletions

View File

@ -1112,7 +1112,7 @@ void OGLRender::drawTexturedRect(const TexturedRectParams & _params)
} }
currentCombiner()->updateRenderState(); currentCombiner()->updateRenderState();
if (RSP.cmd == 0xE4 && texturedRectSpecial != NULL && texturedRectSpecial(_params)) { if (RSP.cmd == G_TEXRECT && texturedRectSpecial != NULL && texturedRectSpecial(_params)) {
gSP.changed |= CHANGED_GEOMETRYMODE; gSP.changed |= CHANGED_GEOMETRYMODE;
return; return;
} }

View File

@ -62,7 +62,7 @@ void Turbo3D_ProcessRDP(u32 _cmds)
w0 = ((u32*)RDRAM)[addr++]; w0 = ((u32*)RDRAM)[addr++];
w1 = ((u32*)RDRAM)[addr++]; w1 = ((u32*)RDRAM)[addr++];
RSP.cmd = _SHIFTR( w0, 24, 8 ); 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.w2 = ((u32*)RDRAM)[addr++];
RDP.w3 = ((u32*)RDRAM)[addr++]; RDP.w3 = ((u32*)RDRAM)[addr++];
} }

View File

@ -46,7 +46,7 @@ void ZSort_RDPCMD( u32, u32 _w1 )
if (RSP.cmd == 0xDF) if (RSP.cmd == 0xDF)
break; break;
u32 w1 = ((u32*)RDRAM)[addr++]; u32 w1 = ((u32*)RDRAM)[addr++];
if (RSP.cmd == 0xE4 || RSP.cmd == 0xE5) { if (RSP.cmd == G_TEXRECT || RSP.cmd == G_TEXRECTFLIP) {
addr++; addr++;
RDP.w2 = ((u32*)RDRAM)[addr++]; RDP.w2 = ((u32*)RDRAM)[addr++];
addr++; addr++;