Fix [#21603] Mip-mapping setting not saved in User preferences
authorMatt Ebb <matt@mke3.net>
Mon, 15 Mar 2010 01:12:41 +0000 (01:12 +0000)
committerMatt Ebb <matt@mke3.net>
Mon, 15 Mar 2010 01:12:41 +0000 (01:12 +0000)
source/blender/windowmanager/intern/wm_init_exit.c

index 8e3c931..5302cb1 100644 (file)
@@ -151,6 +151,7 @@ void WM_init(bContext *C, int argc, char **argv)
 
        if (!G.background) {
                GPU_extensions_init();
+               GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP));
        
                UI_init();
        }
@@ -159,9 +160,7 @@ void WM_init(bContext *C, int argc, char **argv)
        clear_mat_mtex_copybuf();
 
        //      glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
-       
-//     init_node_butfuncs();
-       
+               
        ED_preview_init_dbase();
        
        G.ndofdevice = -1;      /* XXX bad initializer, needs set otherwise buttons show! */