mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix DepthBufferToRDRAM::CopyToRDRAM :
return if depth buffer is null
This commit is contained in:
parent
c7c36ce54a
commit
fd3fe0b7b7
|
@ -786,7 +786,7 @@ void DepthBufferToRDRAM::Destroy() {
|
|||
|
||||
void DepthBufferToRDRAM::CopyToRDRAM( u32 address) {
|
||||
FrameBuffer *current = FrameBuffer_FindBuffer(address);
|
||||
if (current == NULL)
|
||||
if (current == NULL || current->pDepthBuffer == NULL)
|
||||
return;
|
||||
|
||||
DepthBuffer * pDepthBuffer = current->pDepthBuffer;
|
||||
|
|
Loading…
Reference in New Issue
Block a user