From 6921f041204446f61cd243c498040feedaacfada Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Sat, 13 Oct 2001 22:29:15 +0000 Subject: [PATCH] fill out stencil implementation --- panda/src/glgsg/glGraphicsStateGuardian.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/panda/src/glgsg/glGraphicsStateGuardian.cxx b/panda/src/glgsg/glGraphicsStateGuardian.cxx index 1c3bd5b9a7..425d3b132f 100644 --- a/panda/src/glgsg/glGraphicsStateGuardian.cxx +++ b/panda/src/glgsg/glGraphicsStateGuardian.cxx @@ -4138,9 +4138,7 @@ get_stencil_action_type(StencilProperty::Action a) const case StencilProperty::A_decrement: glgsg_cat.error() << "wraparound incr/decr StencilProperty::Action not supported by OpenGL\n"; - if(a == StencilProperty::A_increment) - return GL_INCR; - else return GL_DECR; + return ((a == StencilProperty::A_increment) ? GL_INCR : GL_DECR); } glgsg_cat.error() << "Invalid StencilProperty::Action value" << endl;