Source code clean-up and a comment

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3277 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
death2droid 2009-05-23 09:22:49 +00:00
parent 727f8aad87
commit d9e661123c
1 changed files with 7 additions and 8 deletions

View File

@ -1188,14 +1188,13 @@ bool Renderer::IsBlack()
{ {
for (int i = 0; i < 2;i++) for (int i = 0; i < 2;i++)
{ {
for (int c = 0; c < 2 ;c++) //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[c], GL_BYTE, &pixels[i]); glReadPixels(500, 300, 1, 1, color[i], GL_BYTE, &pixels[i]);
if(pixels[i] != 0) if(pixels[i] != 0)
return false; return false;
else else
return true; return true;
}
} }
} }
} }