[GEM-dev] stencil
IOhannes m zmoelnig
zmoelnig at iem.at
Thu May 4 20:10:29 CEST 2006
cyrille henry wrote:
> hello,
>
> i made a mistake in my previus post caused by the Z buffer.
> in fact, the stencil buffer does not look active now.
how is this patch supposed to work?
i can turn on/off the red square by clicking on the GL_ALWAYS (on) resp.
GL_NEVER (off); i guess this is how it is supposed to work?
>
> anyway, i cant find your change in the sources. and in the curent cvs, i
> don't see in gemWinCreateXwin.cpp the creation of the stencil buffer.
>
>
hmm, there are no more changes in GemWinCreateXWin.cpp (apart from
adding GLX_STENCIL_SIZE to the glx-hints; but you already have this)
there was 2 tiny change to GemMan.cpp (setting the clear-mask) which
where added in revision 1.49 (i just saw that the anonymous cvs-browser
on sourceforge is still at 1.47; i submitted rev1.49 on april 11th...)
basically it is just adding GL_STENCIL_BUFFER_BIT to the
m_clear_mask-flags in GemMan.cpp:70 and adding a line
glClear(GL_STENCIL_BUFFER_BIT & m_clear_mask);
around GemMan.cpp:862
mfg.adr.
IOhannes
More information about the GEM-dev
mailing list