summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-12-24 03:42:18 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-12-24 03:42:18 +0100
commita7a5ae60e49f135fed64700e73fa378273afcefe (patch)
treef00cd62f966cdfba5e21f8ab2ad3a8302239b263 /src
parent2a6009e8f24be3909239a5ab6e6d6fb53d0c5845 (diff)
downloadzoom++-a7a5ae60e49f135fed64700e73fa378273afcefe.tar
zoom++-a7a5ae60e49f135fed64700e73fa378273afcefe.zip
Don't wrap stencil values
Diffstat (limited to 'src')
-rw-r--r--src/Renderer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Renderer.h b/src/Renderer.h
index 8c531a5..bf2da20 100644
--- a/src/Renderer.h
+++ b/src/Renderer.h
@@ -71,7 +71,7 @@ class Renderer {
Shader::disable();
glFrontFace(GL_CCW);
- glStencilOp(GL_KEEP, GL_INCR_WRAP, GL_KEEP);
+ glStencilOp(GL_KEEP, GL_INCR, GL_KEEP);
glBegin(GL_TRIANGLES);
for(std::vector<ShadowVolume>::iterator v = shadowVolumes.begin(); v != shadowVolumes.end(); ++v) {
@@ -80,7 +80,7 @@ class Renderer {
glEnd();
glFrontFace(GL_CW);
- glStencilOp(GL_KEEP, GL_DECR_WRAP, GL_KEEP);
+ glStencilOp(GL_KEEP, GL_DECR, GL_KEEP);
glBegin(GL_TRIANGLES);
for(std::vector<ShadowVolume>::iterator v = shadowVolumes.begin(); v != shadowVolumes.end(); ++v) {