mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Don't fix zero VI.width and VI.height
If these values are zero, it is for purpose. Fixed depth buffer write in PD intro.
This commit is contained in:
parent
ea713f8e0c
commit
3e65749241
9
VI.cpp
9
VI.cpp
|
@ -56,11 +56,6 @@ void VI_UpdateSize()
|
|||
// const int fsaa = ((*REG.VI_STATUS) >> 8) & 3;
|
||||
// const int divot = ((*REG.VI_STATUS) >> 4) & 1;
|
||||
|
||||
if (VI.width == 0)
|
||||
VI.width = *REG.VI_WIDTH;
|
||||
if (VI.height == 0)
|
||||
VI.height = 240;
|
||||
|
||||
if (config.frameBufferEmulation.enable && (interlacedPrev != VI.interlaced || widthPrev != VI.width || heightPrev != VI.height)) {
|
||||
frameBufferList().destroy();
|
||||
depthBufferList().destroy();
|
||||
|
@ -68,8 +63,8 @@ void VI_UpdateSize()
|
|||
frameBufferList().init();
|
||||
}
|
||||
|
||||
VI.rwidth = 1.0f / VI.width;
|
||||
VI.rheight = 1.0f / VI.height;
|
||||
VI.rwidth = VI.width != 0 ? 1.0f / VI.width : 0.0f;
|
||||
VI.rheight = VI.height != 0 ? 1.0f / VI.height : 0.0f;
|
||||
}
|
||||
|
||||
void VI_UpdateScreen()
|
||||
|
|
Loading…
Reference in New Issue
Block a user