The problem with this hack is, that if we keep this in, then this hack
is enabled for *all* people on linux, if they need it or not.

AFAIK, we can't detect what drivers people are using, so the below
error message is spit out for everyone on linux.

If people don't report about the problem to the driver guys, then it
don't get fixed.

This is bad.


I am thinking we should revert the hack altogether.

Opinions?





Index: lib/ivis_opengl/GLee.c
===================================================================
--- lib/ivis_opengl/GLee.c      (revision 7656)
+++ lib/ivis_opengl/GLee.c      (working copy)
@@ -12002,7 +12002,8 @@

        // NOTE: this hack causes issues with MAC OS
        // HACK: work around for drivers that report VBO, but don't have
full openGL 1.5 implementation.
-       #if defined(WZ_OS_UNIX) && !defined(WZ_OS_MAC)
+       #if !defined (_WIN32) || !defined (__APPLE__) || !defined (__APPLE_CC__)
+       fprintf(stderr, "GLee hack is enabled. Work around for video drivers
that report VBO, but don't have full openGL 1.5 implementation--please
report the issue to the driver maker.");
        GLeeFuncPtr_glBindBuffer = GLeeFuncPtr_glBindBufferARB;
        GLeeFuncPtr_glDeleteBuffers = GLeeFuncPtr_glDeleteBuffersARB;
        GLeeFuncPtr_glGenBuffers = GLeeFuncPtr_glGenBuffersARB;

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to