Hi,

On Wed, 2010-06-16 at 10:34 +0200, Constantin Müller wrote:
> Hi Carsten,
> 
> I have debugged the program with an OpenGL debugger, but I can't see,
> what the problem is.
> Here is the debug-trace, I hope someone has an idea, what is wrong.
> 
> 
> W! Program Start
> |  glGenRenderbuffersEXT(1, 002FE920)
> |  glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, 1)
> |  glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT, 512, 512)
> |  glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT,
> GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, 1)
> |  glGetError()
> |  glGenRenderbuffersEXT(1, 002FE920)
> |  glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, 2)
> |  glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_STENCIL_INDEX, 512, 512)
> W! OpenGL error GL_INVALID_ENUM detected
> >  glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, 
> > GL_STENCIL_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, 2)

one question, is GL_STENCIL_INDEX just the debugger output as usually it
should be something like GL_STENCIL_INDEX8 ?

But from http://www.opengl.org/wiki/GL_EXT_framebuffer_object#Stencil

Stencil 
NEVER EVER MAKE A STENCIL buffer. All GPUs and all drivers do not
support an independent stencil buffer. If you need a stencil buffer,
then you need to make a Depth=24, Stencil=8 buffer, also called D24S8.
Please search for the example about GL_EXT_packed_depth_stencil on this
page.

Could you give this a try instead.

kind regards
  gerrit



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to