From d9e661123c8ae49d881756db50e2673f12cba964 Mon Sep 17 00:00:00 2001 From: death2droid Date: Sat, 23 May 2009 09:22:49 +0000 Subject: [PATCH] Source code clean-up and a comment git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3277 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 2fdf030a53..d77be46682 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -1188,14 +1188,13 @@ bool Renderer::IsBlack() { for (int i = 0; i < 2;i++) { - for (int c = 0; c < 2 ;c++) - { - glReadPixels(500, 300, 1, 1, color[c], GL_BYTE, &pixels[i]); - if(pixels[i] != 0) - return false; - else - return true; - } +//glReadPixels(x, y, 1, 1, color[i], GL_BYTE, &pixels[i]); +//Using the x and y causes OpenGL not to display anything so temporarly it uses the 500 and 300 inplace of them(Still works fine) + glReadPixels(500, 300, 1, 1, color[i], GL_BYTE, &pixels[i]); + if(pixels[i] != 0) + return false; + else + return true; } } }