mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Correct FrameBufferList::renderBuffer -
Add more check that buffer width is not zero. Fixed flicker in Midway racing games, #373
This commit is contained in:
parent
29a9479099
commit
1558571ca9
|
@ -521,7 +521,7 @@ void FrameBufferList::renderBuffer(u32 _address)
|
||||||
{
|
{
|
||||||
static s32 vStartPrev = 0;
|
static s32 vStartPrev = 0;
|
||||||
|
|
||||||
if (VI.width == 0 || *REG.VI_WIDTH == 0) // H width is zero. Don't draw
|
if (VI.width == 0 || *REG.VI_WIDTH == 0 || *REG.VI_H_START == 0) // H width is zero. Don't draw
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FrameBuffer *pBuffer = findBuffer(_address);
|
FrameBuffer *pBuffer = findBuffer(_address);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user