mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Code cleanup: replace texrect opcode by symbolic name.
This commit is contained in:
parent
1611e8dd61
commit
7c7a7112e7
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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++];
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user