1
0
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:
Sergey Lipskiy 2015-02-18 19:40:13 +06:00
parent 975b54810f
commit 907a29e313

View File

@ -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);