OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d63f81
)
show that we need to glClear to be fast(er)
author
Mathias Agopian
<mathias@google.com>
Wed, 12 Aug 2009 03:50:20 +0000
(20:50 -0700)
committer
Mathias Agopian
<mathias@google.com>
Wed, 12 Aug 2009 03:50:20 +0000
(20:50 -0700)
opengl/tests/filter/filter.cpp
patch
|
blob
|
history
diff --git
a/opengl/tests/filter/filter.cpp
b/opengl/tests/filter/filter.cpp
index
739bf7c
..
2351909
100644
(file)
--- 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