From 3b4f534abd1ba3173c4f8e0fb31dc6c5e9a6928f Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 2 Jul 2009 11:25:43 +0000 Subject: [PATCH] Small gl possible crash fix (from cnu) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3645 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index eb9a4e7299..115f2b51e0 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -488,7 +488,7 @@ void Video_OnThreadAccessEFB() // Read the z value! Also adjust the pixel to read to the upscaled EFB resolution // Plus we need to flip the y value as the OGL image is upside down - glReadPixels(s_EFBx*xScale, Renderer::GetTargetHeight() - s_EFBy*yScale, xScale, yScale, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, &z); + glReadPixels(s_EFBx*xScale, Renderer::GetTargetHeight() - s_EFBy*yScale, 1, 1, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, &z); GL_REPORT_ERRORD(); // Clamp the 32bits value returned by glReadPixels to a 24bits value (GC uses a 24bits Z-Buffer)