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