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.7 by root, Thu Aug 9 05:38:30 2007 UTC vs.
Revision 1.8 by root, Sun Aug 12 01:49:09 2007 UTC

26 if /^(?:gl[A-Z_]|GL_)/; 26 if /^(?:gl[A-Z_]|GL_)/;
27 } 27 }
28} 28}
29 29
30sub init { 30sub init {
31 if ($::CFG->{opengl11}) {
32 $GL_VERSION = 1.1;
33 %GL_EXT = ();
34 } else {
31 $GL_VERSION = gl_version * 1; 35 $GL_VERSION = gl_version * 1;
32 %GL_EXT = map +($_ => 1), split /\s+/, gl_extensions; 36 %GL_EXT = map +($_ => 1), split /\s+/, gl_extensions;
37 }
33 38
34# $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2; 39 $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2;
35 $GL_NPOT = $GL_VERSION >= 2; # some pre-2.0 cards seem to fall back to software rendering
36 $GL_NPOT = 0 if gl_vendor =~ /ATI Technologies/; # ATI doesn't get it right...
37 40
38 glDisable GL_COLOR_MATERIAL; 41 glDisable GL_COLOR_MATERIAL;
39 glShadeModel GL_FLAT; 42 glShadeModel GL_FLAT;
40 glDisable GL_DITHER; 43 glDisable GL_DITHER;
41 glDisable GL_DEPTH_TEST; 44 glDisable GL_DEPTH_TEST;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines