Ahh, I've never tried compiling against Mesa 4, If there in Mesa's headers I think you can safely comment them out in ours. I'll put in a check before the defines. try: #ifndef GL_TEXTURE0_SGIS #define GL_TEXTURE0_SGIS ... #endif #ifndef GL_TEXTURE1_SGIS ... Hopefully that fixes it... --brendan