Skip to content

Instantly share code, notes, and snippets.

@McZonk
Last active January 1, 2016 15:09
Show Gist options
  • Save McZonk/8162490 to your computer and use it in GitHub Desktop.
Save McZonk/8162490 to your computer and use it in GitHub Desktop.
Fixing TRAUMA OpenGL ES debugger warnings
if(flashIntensity > 0.0f)
{
glClearColor(flashIntensity, flashIntensity, flashIntensity, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
}
else
{
glClear(GL_COLOR_BUFFER_BIT);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment