--- deliantra/Deliantra-Client/DC/OpenGL.pm 2007/12/26 21:03:21 1.14 +++ deliantra/Deliantra-Client/DC/OpenGL.pm 2009/11/26 07:19:12 1.16 @@ -11,6 +11,7 @@ our $GL_NPOT; our $GL_COMPRESS; our $GL_BFSEP; # blendfuncseparate +our $APPLE_NVIDIA_BUG; our $DEBUG = 1; our %INIT_HOOK; @@ -55,6 +56,11 @@ $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2.0; $GL_COMPRESS = $GL_EXT{GL_ARB_texture_compression} || $GL_VERSION >= 1.3; + $GL_COMPRESS = 0 if DC::OpenGL::gl_vendor eq "Apple Computer, Inc."; # there is no end to their suckage + + $APPLE_NVIDIA_BUG = DC::OpenGL::gl_vendor eq "NVIDIA Corporation" && $^O eq "darwin"; + apple_nvidia_bug $APPLE_NVIDIA_BUG; + disable_GL_EXT_blend_func_separate unless $GL_BFSEP;