mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Correct DebugMsg for gSPMatrix
This commit is contained in:
parent
84cf648089
commit
62eb76e7d9
12
src/gSP.cpp
12
src/gSP.cpp
|
@ -708,11 +708,13 @@ void gSPMatrix( u32 matrix, u8 param )
|
|||
else
|
||||
MultMatrix2( gSP.matrix.projection, mtx );
|
||||
} else {
|
||||
if ((param & G_MTX_PUSH) && (gSP.matrix.modelViewi < (gSP.matrix.stackSize))) {
|
||||
CopyMatrix( gSP.matrix.modelView[gSP.matrix.modelViewi + 1], gSP.matrix.modelView[gSP.matrix.modelViewi] );
|
||||
gSP.matrix.modelViewi++;
|
||||
} else
|
||||
DebugMsg(DEBUG_NORMAL | DEBUG_ERROR, "// Modelview stack overflow\n");
|
||||
if ((param & G_MTX_PUSH)) {
|
||||
if (gSP.matrix.modelViewi < (gSP.matrix.stackSize)) {
|
||||
CopyMatrix(gSP.matrix.modelView[gSP.matrix.modelViewi + 1], gSP.matrix.modelView[gSP.matrix.modelViewi]);
|
||||
gSP.matrix.modelViewi++;
|
||||
} else
|
||||
DebugMsg(DEBUG_NORMAL | DEBUG_ERROR, "// Modelview stack overflow\n");
|
||||
}
|
||||
|
||||
if (param & G_MTX_LOAD)
|
||||
CopyMatrix( gSP.matrix.modelView[gSP.matrix.modelViewi], mtx );
|
||||
|
|
Loading…
Reference in New Issue
Block a user