… | |
… | |
53 | |
53 | |
54 | $GL_BFSEP = $GL_EXT{GL_EXT_blend_func_separate} || $GL_VERSION >= 2.0; |
54 | $GL_BFSEP = $GL_EXT{GL_EXT_blend_func_separate} || $GL_VERSION >= 2.0; |
55 | $GL_NPOT = $GL_EXT{GL_ARB_texture_non_power_of_two} || $GL_VERSION >= 2.0; |
55 | $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; |
56 | $GL_COMPRESS = $GL_EXT{GL_ARB_texture_compression} || $GL_VERSION >= 1.3; |
57 | |
57 | |
|
|
58 | $GL_COMPRESS = 0 if DC::OpenGL::gl_vendor eq "Apple Computer, Inc."; # there is no end to their suckage |
|
|
59 | |
58 | disable_GL_EXT_blend_func_separate |
60 | disable_GL_EXT_blend_func_separate |
59 | unless $GL_BFSEP; |
61 | unless $GL_BFSEP; |
60 | |
62 | |
61 | glDisable GL_COLOR_MATERIAL; |
63 | glDisable GL_COLOR_MATERIAL; |
62 | glShadeModel GL_FLAT; |
64 | glShadeModel GL_FLAT; |