1
0
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:
Sergey Lipskiy 2013-11-23 15:54:57 +07:00
parent c7c36ce54a
commit fd3fe0b7b7

View File

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