mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Set init value for VIInfo::lastOrigin to -1.
0 is valid origin value, so wrong buffer clear may occur.
This commit is contained in:
parent
97c43d07c7
commit
13366a9c02
2
VI.cpp
2
VI.cpp
|
@ -150,7 +150,7 @@ void VI_UpdateScreen()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VI.lastOrigin == 0) { // Workaround for Mupen64Plus issue with initialization
|
if (VI.lastOrigin == -1) { // Workaround for Mupen64Plus issue with initialization
|
||||||
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user