VBO: disable VBO's by default. Not sure why this was not done, we
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 Oct 2009 16:40:13 +0000 (16:40 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 Oct 2009 16:40:13 +0000 (16:40 +0000)
agreed on this as a condition for the project to be merged.

source/blender/blenkernel/BKE_blender.h
source/blender/editors/interface/resources.c

index 3549d3e372d14bbe98ba6740f78527ca95bd00c8..a79bf43c35470a418c43a1a2b01756ab5e951c5b 100644 (file)
@@ -43,7 +43,7 @@ struct bContext;
 struct ReportList;
 
 #define BLENDER_VERSION                        250
-#define BLENDER_SUBVERSION             4
+#define BLENDER_SUBVERSION             5
 
 #define BLENDER_MINVERSION             250
 #define BLENDER_MINSUBVERSION  0
index 87026bd1a5d16387446c62c40b4a57479839f3aa..ee7db07f3c8ca0471dfe30dbacdd2435debbbc23 100644 (file)
@@ -1259,6 +1259,9 @@ void init_userdef_do_versions(void)
                if(U.audiorate == 0)
                        U.audiorate = 44100;
        }
+
+       if (G.main->versionfile < 250 || (G.main->versionfile == 250 && G.main->subversionfile < 5))
+               U.gameflags |= USER_DISABLE_VBO;
        
        /* GL Texture Garbage Collection (variable abused above!) */
        if (U.textimeout == 0) {