From aff8f10446dc7780f8e6e8052e71b7993f3ff0b1 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Tue, 20 Mar 2012 14:36:53 +0000 Subject: [PATCH] Added hint to some examples --- .../Performance/CubicGridImmediate/CubicGridImmediate.pde | 2 ++ .../OpenGL/Performance/CubicGridRetained/CubicGridRetained.pde | 2 ++ 2 files changed, 4 insertions(+) diff --git a/android/examples/OpenGL/Performance/CubicGridImmediate/CubicGridImmediate.pde b/android/examples/OpenGL/Performance/CubicGridImmediate/CubicGridImmediate.pde index 18ac2bf62..7df929a86 100644 --- a/android/examples/OpenGL/Performance/CubicGridImmediate/CubicGridImmediate.pde +++ b/android/examples/OpenGL/Performance/CubicGridImmediate/CubicGridImmediate.pde @@ -50,6 +50,8 @@ void draw() { } popMatrix(); + hint(ENABLE_DEPTH_TEST); + fcount += 1; int m = millis(); if (m - lastm > 1000 * fint) { diff --git a/android/examples/OpenGL/Performance/CubicGridRetained/CubicGridRetained.pde b/android/examples/OpenGL/Performance/CubicGridRetained/CubicGridRetained.pde index 63b54809e..5caf462a2 100644 --- a/android/examples/OpenGL/Performance/CubicGridRetained/CubicGridRetained.pde +++ b/android/examples/OpenGL/Performance/CubicGridRetained/CubicGridRetained.pde @@ -99,6 +99,8 @@ void draw() { shape(grid); popMatrix(); + hint(ENABLE_DEPTH_TEST); + fcount += 1; int m = millis(); if (m - lastm > 1000 * fint) {