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

Corrected bNeedUpdate condition in VI_UpdateScreen()

Fixed Quake II underwater, issue #229
This commit is contained in:
Sergey Lipskiy 2015-02-20 17:31:58 +06:00
parent 07599ad5ab
commit cd0ec661ba

2
VI.cpp
View File

@ -106,7 +106,7 @@ void VI_UpdateScreen()
if (config.frameBufferEmulation.enable) {
const bool bCFB = !config.frameBufferEmulation.ignoreCFB && (gSP.changed&CHANGED_CPU_FB_WRITE) == CHANGED_CPU_FB_WRITE;
const bool bNeedUpdate = bCFB ? true : (*REG.VI_ORIGIN != VI.lastOrigin);// && gDP.colorImage.changed;
const bool bNeedUpdate = gDP.colorImage.changed != 0 || (bCFB ? true : (*REG.VI_ORIGIN != VI.lastOrigin));
if (bNeedUpdate) {
if ((gSP.changed&CHANGED_CPU_FB_WRITE) == CHANGED_CPU_FB_WRITE) {