Yep, that was it- I wasn't allocating a stencil buffer when I
initialized GLUT. Thanks a ton for your help! I appreciate it.
Thanks,
-Jordan
Dirk Reiners wrote:
>
> Hi Jordan,
>
> Jordan Sorensen wrote:
>> I've been developing a simple application using PyOpenGL for a few
>> weeks now, and trying to add a feature that requires use of the
>> stencil buffer. However, the stencil buffer doesn't seem to be
>> working- all pixels pass the test, even when the test is GL_NEVER.
>> glGetInteger(GL_STENCIL_BITS) returns 0, but running glxinfo on my
>> machine shows that my graphics card supports an 8 bit stencil
>> buffer. I'm running Ubuntu and my graphics card is an nVidia GeForce
>> Go 7300. Anyone have any ideas?
>
> The stencil buffer needs to be allocated when the window is created,
> as it takes resources that not all applications need. How do you
> create the window? If it's GLUT, the glutInitDisplayMode function
> takes an option that allows you to specify it.
>
> Hope it helps
>
> Dirk
>
>
|