Always specify all buffers for clearing. Missing one hurts, one extra doesn't.

This commit is contained in:
Henrik Rydgard committed 2013-01-14 19:25:44 +01:00
1 parent 6d67ba94a0
commit f5e775a9a1
1 file changed
+1 -1
+1 -1
View File
@@ -252,7 +252,7 @@ extern "C" void Java_com_henrikrydgard_libnative_NativeRenderer_displayRender(JN
ELOG("Ended up in nativeRender even though app has quit.%s", "");
// Shouldn't really get here.
glClearColor(1.0, 0.0, 1.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
if (!frameCommand.empty()) {