Moved GPU init to the right location, it has to be called per
window you open. Now rip and add-window gives good views. :)
This commit is contained in:
2008-12-19 17:26:15 +00:00
parent 663612c70c
commit 4db8d5a365
2 changed files with 4 additions and 1 deletions

View File

@@ -139,7 +139,6 @@ void WM_init(bContext *C)
// XXX UI_filelist_init_icons();
GPU_state_init();
GPU_extensions_init();
read_Blog();

View 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();
}
}