[no bug]Unnecessary work in COpenGLDriver.cpp?

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

[no bug]Unnecessary work in COpenGLDriver.cpp?

Post by hendu »

Why is the stencil mask always specified twice? Seems to me like the first call of all these is redundant:

glStencilMask(~0);
glStencilFunc(GL_ALWAYS, 0, ~0);
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

IMHO, the StencilMask is a second, general mask which is always applied on top of the single masks. So it's better to call this twice.
Post Reply