summaryrefslogtreecommitdiffstats
path: root/third_party/gles2_book/Chapter_11
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 20:55:20 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 20:55:20 +0000
commit42cd4c3c6243cff6e6c665e83c552d28d6a1665c (patch)
tree9c286811435633b3b241cdb453e8f7bc18fe1d8a /third_party/gles2_book/Chapter_11
parent1b8dc81f1ce4e767bb5422c3208413c92e90ee54 (diff)
downloadchromium_src-42cd4c3c6243cff6e6c665e83c552d28d6a1665c.zip
chromium_src-42cd4c3c6243cff6e6c665e83c552d28d6a1665c.tar.gz
chromium_src-42cd4c3c6243cff6e6c665e83c552d28d6a1665c.tar.bz2
Fixed stencil Test example. Writing to stencil buffer was getting disabled after the first frame.
Review URL: http://codereview.chromium.org/7740058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/gles2_book/Chapter_11')
-rw-r--r--third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c b/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
index 1f6d91e..1c899d0 100644
--- a/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
+++ b/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
@@ -225,6 +225,7 @@ void stDraw ( ESContext *esContext )
glUniform4fv( userData->colorLoc, 1, colors[i] );
glDrawElements( GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, offset );
}
+ glStencilMask( 0xff );
}
///