--- deliantra/Deliantra-Client/DC/OpenGL.pm 2009/11/26 07:19:12 1.16 +++ deliantra/Deliantra-Client/DC/OpenGL.pm 2009/12/22 01:37:41 1.19 @@ -11,6 +11,7 @@ our $GL_NPOT; our $GL_COMPRESS; our $GL_BFSEP; # blendfuncseparate +our $GL_MULTITEX; our $APPLE_NVIDIA_BUG; our $DEBUG = 1; @@ -40,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}) { @@ -55,6 +56,7 @@ $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_EXT{GL_ARB_multitexture} || $GL_VERSION >= 1.3; $GL_COMPRESS = 0 if DC::OpenGL::gl_vendor eq "Apple Computer, Inc."; # there is no end to their suckage @@ -80,6 +82,7 @@ #glDrawBuffer GL_BACK; #glReadBuffer GL_BACK; + c_init; $_->() for values %INIT_HOOK; }