mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix division by zero in FrameBufferList::renderBuffer
Fixed crash with FB enabled in Top Gear Hyperbike
This commit is contained in:
parent
975b54810f
commit
907a29e313
|
@ -410,7 +410,7 @@ void FrameBufferList::renderBuffer(u32 _address)
|
|||
{
|
||||
static s32 vStartPrev = 0;
|
||||
|
||||
if (VI.width == 0) // H width is zero. Don't draw
|
||||
if (VI.width == 0 || *REG.VI_WIDTH == 0) // H width is zero. Don't draw
|
||||
return;
|
||||
|
||||
FrameBuffer *pBuffer = findBuffer(_address);
|
||||
|
|
Loading…
Reference in New Issue
Block a user