diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-19 20:26:15 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-19 20:26:15 +0300 |
commit | 4db8d5a3656b49468cc1f222e3b04cdf4f060f8f (patch) | |
tree | e044acc52be6b79bc352ec4288804b01d60b997b /source/blender/windowmanager | |
parent | 663612c70c0e41be59f918a45eaa93164626f0a5 (diff) |
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. :)
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 1 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index d8448be30ab..c55cd631a40 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -139,7 +139,6 @@ void WM_init(bContext *C) // XXX UI_filelist_init_icons(); - GPU_state_init(); GPU_extensions_init(); read_Blog(); diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 0dca5804f26..8d660230714 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -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(); } } |