Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-12-19 20:26:15 +0300
committerTon Roosendaal <ton@blender.org>2008-12-19 20:26:15 +0300
commit4db8d5a3656b49468cc1f222e3b04cdf4f060f8f (patch)
treee044acc52be6b79bc352ec4288804b01d60b997b /source/blender/windowmanager
parent663612c70c0e41be59f918a45eaa93164626f0a5 (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.c1
-rw-r--r--source/blender/windowmanager/intern/wm_window.c4
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();
}
}