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

Code refactor: move flag CHANGED_COLORBUFFER from gSP to gDP.

This commit is contained in:
Sergey Lipskiy 2015-05-18 12:35:48 +06:00
parent 5b1a50ecb7
commit db9943a7b9
5 changed files with 5 additions and 5 deletions

View File

@ -597,7 +597,7 @@ void RDP_ProcessRDPList()
}
RSP.bLLE = false;
gSP.changed |= CHANGED_COLORBUFFER;
gDP.changed |= CHANGED_COLORBUFFER;
dp_start = dp_current = dp_end;
}

View File

@ -211,7 +211,7 @@ void RSP_ProcessDList()
FrameBuffer_CopyDepthBuffer( gDP.colorImage.address );
RSP.busy = FALSE;
gSP.changed |= CHANGED_COLORBUFFER;
gDP.changed |= CHANGED_COLORBUFFER;
}
static

View File

@ -155,9 +155,9 @@ void VI_UpdateScreen()
}
}
else {
if (gSP.changed & CHANGED_COLORBUFFER) {
if (gDP.changed & CHANGED_COLORBUFFER) {
ogl.swapBuffers();
gSP.changed &= ~CHANGED_COLORBUFFER;
gDP.changed &= ~CHANGED_COLORBUFFER;
#ifdef DEBUG
while (Debug.paused && !Debug.step);
Debug.step = FALSE;

View File

@ -14,6 +14,7 @@
#define CHANGED_FOGCOLOR 0x100
#define CHANGED_FB_TEXTURE 0x200
#define CHANGED_BLENDCOLOR 0x2000
#define CHANGED_COLORBUFFER 0x1000
#define TEXTUREMODE_NORMAL 0
#define TEXTUREMODE_BGIMAGE 2

View File

@ -7,7 +7,6 @@
#define CHANGED_VIEWPORT 0x01
#define CHANGED_MATRIX 0x02
#define CHANGED_COLORBUFFER 0x04
#define CHANGED_GEOMETRYMODE 0x08
#define CHANGED_TEXTURE 0x10
#define CHANGED_FOGPOSITION 0x20