--- deliantra/Deliantra-Client/DC/OpenGL.pm 2007/12/26 21:03:21 1.14 +++ deliantra/Deliantra-Client/DC/OpenGL.pm 2009/12/17 02:49:38 1.17 @@ -11,6 +11,8 @@ our $GL_NPOT; our $GL_COMPRESS; our $GL_BFSEP; # blendfuncseparate +our $GL_MULTITEX; +our $APPLE_NVIDIA_BUG; our $DEBUG = 1; our %INIT_HOOK; @@ -39,11 +41,11 @@ $GL_VERSION >= 2.0 && (!$GL_EXT{GL_ARB_texture_non_power_of_two} || !$GL_EXT{GL_EXT_blend_func_separate}) - ) { - $::CFG->{force_opengl11} = 1; - } else { - $::CFG->{force_opengl11} = 0; - } + ) { + $::CFG->{force_opengl11} = 1; + } else { + $::CFG->{force_opengl11} = 0; + } } if ($::CFG->{force_opengl11}) { @@ -54,6 +56,12 @@ $GL_BFSEP = $GL_EXT{GL_EXT_blend_func_separate} || $GL_VERSION >= 2.0; $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_MULTITEX = $GL_VERSION >= 1.3; # ARB not supported, 1.3. implies 2+ units + + $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;