1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +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:
Sergey Lipskiy 2014-12-24 16:16:36 +06:00
parent 97c43d07c7
commit 13366a9c02
2 changed files with 2 additions and 2 deletions

2
VI.cpp
View File

@ -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);
glClear(GL_COLOR_BUFFER_BIT);
}

2
VI.h
View File

@ -12,7 +12,7 @@ struct VIInfo
VIInfo() :
width(0), height(0), real_height(0),
lastOrigin(0), interlaced(false)
lastOrigin(-1), interlaced(false)
{}
};