From f5e775a9a10e38d5ac98261c132875492dfd91c3 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 14 Jan 2013 19:25:05 +0100 Subject: [PATCH] Always specify all buffers for clearing. Missing one hurts, one extra doesn't. --- android/app-android.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app-android.cpp b/android/app-android.cpp index 627359fce1..d65714d63f 100644 --- a/android/app-android.cpp +++ b/android/app-android.cpp @@ -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()) {