From: Wu N. <ni...@in...> - 2007-07-23 02:02:04
|
On Fri, 2007-07-20 at 10:44 -0400, Mar...@be... wrote: > > Mesa and many dri drivers have implemented SeparateStencil feature. > But when I call glStencilFuncSeparate, it does not work because mesa > has not registered > it into dispatch table. Why? I used the Mesa > tip. > > > Below is my debug info: > > (gdb) s > > glStencilFuncSeparate (face=1032, func=519, ref=2, mask=1) > > at ../../../src/mesa/glapi/glapitemp.h:2749 > > 2749 DISPATCH(StencilFuncSeparate, (face, func, ref, mask), > (F, > > "glStencilFuncSeparate(0x%x, 0x%x, %d, %d);\n", face, func, ref, > mask)); > > (gdb) s > > generic_nop () at main/context.c:981 > > 981 _mesa_problem(NULL, "User called no-op dispatch function > (an > > unsupported extension function?)"); > > (gdb) n > > 983 } > > > Thanks, > > Nian Wu > > > > Hi, > > I’m too sure if this is related, but with Mesa, in order to even call the two-sided stencil functions, I had to define GL_GLEXT_PROTOTYPES before I included the GL headers, like this: > > #define GL_GLEXT_PROTOTYPES // need this for two-sided stencil prototypes > #include <GL/glut.h> > #include <GL/gl.h> I added this macro, the problem still exists. I use i915 driver and DRI is enabled. -Nian Wu |