1
0
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:
Logan 2020-10-19 09:10:01 -06:00 committed by Sergey Lipskiy
parent c7144d0775
commit cf7b3c84ce

View File

@ -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 &&