]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't bother using GL_ARB_texture_non_power_of_two on OSX, too buggy
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 May 2011 21:02:21 +0000 (21:02 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 8 May 2011 21:23:52 +0000 (23:23 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11134 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=157cb585d7c32162a9b842361603d776afc78e8c

vid_shared.c

index a69f3be5936888f61967f9e6ef35cf72f0e2068e..00dd0ab49d66ae26cf08807ca1b072c7dbbbc316 100644 (file)
@@ -873,7 +873,10 @@ void VID_CheckExtensions(void)
        vid.support.arb_texture_cube_map = GL_CheckExtension("GL_ARB_texture_cube_map", NULL, "-nocubemap", false);
        vid.support.arb_texture_env_combine = GL_CheckExtension("GL_ARB_texture_env_combine", NULL, "-nocombine", false) || GL_CheckExtension("GL_EXT_texture_env_combine", NULL, "-nocombine", false);
        vid.support.arb_texture_gather = GL_CheckExtension("GL_ARB_texture_gather", NULL, "-notexturegather", false);
+#ifndef __APPLE__
+       // LordHavoc: too many bugs on OSX!
        vid.support.arb_texture_non_power_of_two = GL_CheckExtension("GL_ARB_texture_non_power_of_two", NULL, "-notexturenonpoweroftwo", false);
+#endif
        vid.support.arb_vertex_buffer_object = GL_CheckExtension("GL_ARB_vertex_buffer_object", vbofuncs, "-novbo", false);
        vid.support.ati_separate_stencil = GL_CheckExtension("separatestencil", gl2separatestencilfuncs, "-noseparatestencil", true) || GL_CheckExtension("GL_ATI_separate_stencil", atiseparatestencilfuncs, "-noseparatestencil", false);
        vid.support.ext_blend_minmax = GL_CheckExtension("GL_EXT_blend_minmax", blendequationfuncs, "-noblendminmax", false);