summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-08-11 20:50:20 -0700
committerMathias Agopian <mathias@google.com>2009-08-11 20:50:20 -0700
commita1d9388ea7fb7515db3bc7f9a9c876b76cac1c76 (patch)
treec61e9fde82df15715fedce3989eaf45094110785
parent0d63f8163d4d50c4a80bfc2013e5edba4a465b1a (diff)
downloadframeworks_base-a1d9388ea7fb7515db3bc7f9a9c876b76cac1c76.zip
frameworks_base-a1d9388ea7fb7515db3bc7f9a9c876b76cac1c76.tar.gz
frameworks_base-a1d9388ea7fb7515db3bc7f9a9c876b76cac1c76.tar.bz2
show that we need to glClear to be fast(er)
-rw-r--r--opengl/tests/filter/filter.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/opengl/tests/filter/filter.cpp b/opengl/tests/filter/filter.cpp
index 739bf7c..2351909 100644
--- a/opengl/tests/filter/filter.cpp
+++ b/opengl/tests/filter/filter.cpp
@@ -157,12 +157,15 @@ int main(int argc, char** argv)
}
glMatrixMode(GL_MODELVIEW);
- //glEnable(GL_SCISSOR_TEST);
- //glScissor(0,dim,dim,h-dim);
+ glScissor(0,dim,dim,h-dim);
+ glDisable(GL_SCISSOR_TEST);
for (int y=0 ; y<dim ; y++) {
+ //glDisable(GL_SCISSOR_TEST);
glClear(GL_COLOR_BUFFER_BIT);
+ //glEnable(GL_SCISSOR_TEST);
+
#if USE_DRAW_TEXTURE && GL_OES_draw_texture
glDrawTexiOES(0, y, 1, dim, dim);
#else