glgsg error

In file included from panda/src/glstuff/glstuff_src.cxx:29,
from panda/src/glgsg/glgsg.cxx:24:
panda/src/glstuff/glGraphicsStateGuardian_src.cxx: In member function virtual void GLGraphicsStateGuardian::reset()': panda/src/glstuff/glGraphicsStateGuardian_src.cxx:404: error:
GL_MIRROR_CLAMP_EXT’ undeclared (first use this function)
panda/src/glstuff/glGraphicsStateGuardian_src.cxx:404: error: (Each undeclared
identifier is reported only once for each function it appears in.)
panda/src/glstuff/glGraphicsStateGuardian_src.cxx:405: error: GL_MIRROR_CLAMP_TO_EDGE_EXT' undeclared (first use this function) panda/src/glstuff/glGraphicsStateGuardian_src.cxx:406: error:
GL_MIRROR_CLAMP_TO_BORDER_EXT’ undeclared (first use this function)

Help :cry:

Gaminggeek

Hmm. What kind of system are you building on? By chance, is there a file called glext.h somewhere already installed on your system, outside of the panda sources?

David

You know, this isn’t the first time we’ve had this problem.

Why don’t we rename “glext.h” to “panda-glext.h” and include that instead?

  • Josh

That’s what I was thinking we should do. But I’d like to first confirm that this is indeed the problem experienced by this particular user.

David

caleb@cbb caleb locate glext.h /mnt/win/Dev-Cpp/include/gl/glext.h /mnt/win/Doom3/src/renderer/glext.h /usr/lib/opengl/xorg-x11/include/glext.h /usr/lib/opengl/global/include/glext.h /usr/lib/opengl/nvidia/include/glext.h /usr/include/GL/glext.h /usr/include/gtkglext-1.0/gdk/gdkglglext.h /usr/include/gtkglext-1.0/gdk/glext/wglext.h /usr/include/gtkglext-1.0/gdk/glext/glext.h /usr/include/panda3d/wglext.h /usr/include/panda3d/glext.h /usr/portage/distfiles/glext.h-20040830.bz2 /usr/portage/distfiles/glext.h-26.bz2 /home/caleb/panda3d-1.0.4/built/include/wglext.h /home/caleb/panda3d-1.0.4/built/include/glext.h /home/caleb/panda3d-1.0.4/panda/src/wgldisplay/wglext.h /home/caleb/panda3d-1.0.4/panda/src/glstuff/glext.h caleb@cbb caleb

yes quite a few :laughing:

Egad.

As a short-term workaround, you can put the following lines somewhere in the beginning of glGraphicsStateGuardian_src.cxx:

#define GL_MIRROR_CLAMP_EXT               0x8742
#define GL_MIRROR_CLAMP_TO_EDGE_EXT       0x8743
#define GL_MIRROR_CLAMP_TO_BORDER_EXT     0x8912

David