ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/OpenGL.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/OpenGL.pm (file contents):
Revision 1.15 by root, Sat Aug 30 04:43:02 2008 UTC vs.
Revision 1.16 by root, Thu Nov 26 07:19:12 2009 UTC

9our $GL_VERSION; 9our $GL_VERSION;
10 10
11our $GL_NPOT; 11our $GL_NPOT;
12our $GL_COMPRESS; 12our $GL_COMPRESS;
13our $GL_BFSEP; # blendfuncseparate 13our $GL_BFSEP; # blendfuncseparate
14our $APPLE_NVIDIA_BUG;
14 15
15our $DEBUG = 1; 16our $DEBUG = 1;
16our %INIT_HOOK; 17our %INIT_HOOK;
17our %SHUTDOWN_HOOK; 18our %SHUTDOWN_HOOK;
18 19
55 $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2.0; 56 $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2.0;
56 $GL_COMPRESS = $GL_EXT{GL_ARB_texture_compression} || $GL_VERSION >= 1.3; 57 $GL_COMPRESS = $GL_EXT{GL_ARB_texture_compression} || $GL_VERSION >= 1.3;
57 58
58 $GL_COMPRESS = 0 if DC::OpenGL::gl_vendor eq "Apple Computer, Inc."; # there is no end to their suckage 59 $GL_COMPRESS = 0 if DC::OpenGL::gl_vendor eq "Apple Computer, Inc."; # there is no end to their suckage
59 60
61 $APPLE_NVIDIA_BUG = DC::OpenGL::gl_vendor eq "NVIDIA Corporation" && $^O eq "darwin";
62 apple_nvidia_bug $APPLE_NVIDIA_BUG;
63
60 disable_GL_EXT_blend_func_separate 64 disable_GL_EXT_blend_func_separate
61 unless $GL_BFSEP; 65 unless $GL_BFSEP;
62 66
63 glDisable GL_COLOR_MATERIAL; 67 glDisable GL_COLOR_MATERIAL;
64 glShadeModel GL_FLAT; 68 glShadeModel GL_FLAT;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines