From a7a5ae60e49f135fed64700e73fa378273afcefe Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 24 Dec 2009 03:42:18 +0100 Subject: Don't wrap stencil values --- src/Renderer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Renderer.h') 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::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::iterator v = shadowVolumes.begin(); v != shadowVolumes.end(); ++v) { -- cgit v1.2.3