From fd3fe0b7b731b9f4244033f2cec34dbb622f48fc Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 23 Nov 2013 15:54:57 +0700 Subject: [PATCH] Fix DepthBufferToRDRAM::CopyToRDRAM : return if depth buffer is null --- FrameBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrameBuffer.cpp b/FrameBuffer.cpp index 74bdea2a..8cd23a9f 100644 --- a/FrameBuffer.cpp +++ b/FrameBuffer.cpp @@ -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;