mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix crash in FrameBufferToRDRAM::CopyToRDRAM when current buffer is NULL.
Fixed Snowboard Kids causes segmentation fault #477
This commit is contained in:
parent
cd0c74dff0
commit
bbc71c3f0a
|
@ -903,7 +903,7 @@ void FrameBufferToRDRAM::_copyWhite(FrameBuffer * _pBuffer)
|
|||
|
||||
void FrameBufferToRDRAM::CopyToRDRAM(u32 _address)
|
||||
{
|
||||
if (VI.width == 0) // H width is zero. Don't copy
|
||||
if (VI.width == 0 || frameBufferList().getCurrent() == NULL) // H width is zero or no current buffer. Don't copy
|
||||
return;
|
||||
FrameBuffer *pBuffer = frameBufferList().findBuffer(_address);
|
||||
if (pBuffer == NULL || pBuffer->m_width < VI.width || pBuffer->m_isOBScreen)
|
||||
|
|
Loading…
Reference in New Issue
Block a user