2.5
authorTon Roosendaal <ton@blender.org>
Fri, 19 Dec 2008 17:26:15 +0000 (17:26 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 19 Dec 2008 17:26:15 +0000 (17:26 +0000)
Moved GPU init to the right location, it has to be called per
window you open. Now rip and add-window gives good views. :)

source/blender/windowmanager/intern/wm_init_exit.c
source/blender/windowmanager/intern/wm_window.c

index d8448be30abfb4f4ae29ac1d0cdbcdea4e403955..c55cd631a4046be32dbbaf242d332a258947d0fb 100644 (file)
@@ -139,7 +139,6 @@ void WM_init(bContext *C)
        
 // XXX UI_filelist_init_icons();
        
-       GPU_state_init();
        GPU_extensions_init();
        
        read_Blog();
index 0dca5804f2609faa8a7c3776d1a1f7dbed22f4ba..8d660230714a46fe79f981315068c4049501fb51 100644 (file)
@@ -55,6 +55,8 @@
 
 #include "ED_screen.h"
 
+#include "GPU_draw.h"
+
 /* the global to talk to ghost */
 GHOST_SystemHandle g_system= NULL;
 
@@ -215,6 +217,8 @@ static void wm_window_add_ghostwindow(wmWindowManager *wm, char *title, wmWindow
                
                /* standard state vars for window */
                glEnable(GL_SCISSOR_TEST);
+               
+               GPU_state_init();
        }
 }