mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +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) {
|
void DepthBufferToRDRAM::CopyToRDRAM( u32 address) {
|
||||||
FrameBuffer *current = FrameBuffer_FindBuffer(address);
|
FrameBuffer *current = FrameBuffer_FindBuffer(address);
|
||||||
if (current == NULL)
|
if (current == NULL || current->pDepthBuffer == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DepthBuffer * pDepthBuffer = current->pDepthBuffer;
|
DepthBuffer * pDepthBuffer = current->pDepthBuffer;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user