2.5
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:
@@ -139,7 +139,6 @@ void WM_init(bContext *C)
|
||||
|
||||
// XXX UI_filelist_init_icons();
|
||||
|
||||
GPU_state_init();
|
||||
GPU_extensions_init();
|
||||
|
||||
read_Blog();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user