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.6 by root, Sat Jul 21 16:07:53 2007 UTC vs.
Revision 1.7 by root, Thu Aug 9 05:38:30 2007 UTC

29 29
30sub init { 30sub init {
31 $GL_VERSION = gl_version * 1; 31 $GL_VERSION = gl_version * 1;
32 %GL_EXT = map +($_ => 1), split /\s+/, gl_extensions; 32 %GL_EXT = map +($_ => 1), split /\s+/, gl_extensions;
33 33
34 $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2; 34# $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
35 $GL_NPOT = 0 if gl_vendor =~ /ATI Technologies/; # ATI doesn't get it right... 36 $GL_NPOT = 0 if gl_vendor =~ /ATI Technologies/; # ATI doesn't get it right...
36 37
37 glDisable GL_COLOR_MATERIAL; 38 glDisable GL_COLOR_MATERIAL;
38 glShadeModel GL_FLAT; 39 glShadeModel GL_FLAT;
39 glDisable GL_DITHER; 40 glDisable GL_DITHER;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines