mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Protect against addressing nullptr
This commit is contained in:
parent
c7144d0775
commit
cf7b3c84ce
|
@ -896,7 +896,8 @@ void gDPFullSync()
|
||||||
frameBufferList().updateCurrentBufferEndAddress();
|
frameBufferList().updateCurrentBufferEndAddress();
|
||||||
|
|
||||||
FrameBuffer * pCurrentBuffer = frameBufferList().getCurrent();
|
FrameBuffer * pCurrentBuffer = frameBufferList().getCurrent();
|
||||||
pCurrentBuffer->copyDepthTexture();
|
if (pCurrentBuffer != nullptr)
|
||||||
|
pCurrentBuffer->copyDepthTexture();
|
||||||
if ((config.frameBufferEmulation.copyToRDRAM != Config::ctDisable || (config.generalEmulation.hacks & hack_subscreen) != 0) &&
|
if ((config.frameBufferEmulation.copyToRDRAM != Config::ctDisable || (config.generalEmulation.hacks & hack_subscreen) != 0) &&
|
||||||
!FBInfo::fbInfo.isSupported() &&
|
!FBInfo::fbInfo.isSupported() &&
|
||||||
pCurrentBuffer != nullptr &&
|
pCurrentBuffer != nullptr &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user