mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 09:35:35 +00:00
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:
parent
727f8aad87
commit
d9e661123c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user