fill out stencil implementation

This commit is contained in:
cxgeorge 2001-10-13 22:29:15 +00:00
parent 7ec27f1d55
commit 6921f04120
1 changed files with 1 additions and 3 deletions

View File

@ -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;