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:
authorCampbell Barton <ideasman42@gmail.com>2018-07-01 22:07:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-01 22:07:18 +0300
commitbf7c8151696255910594dcd9de1b4af7e7bdd296 (patch)
treeff4a7b09d4e7c315855402975e4e95770242a3c7
parent37994e0af2cf6f0d7ed8a072eb765dfb022ceaef (diff)
Fix T55675: Crash internal animation player
-rw-r--r--source/blender/windowmanager/intern/wm_playanim.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c
index 30b1d6237c4..8c062be2a00 100644
--- a/source/blender/windowmanager/intern/wm_playanim.c
+++ b/source/blender/windowmanager/intern/wm_playanim.c
@@ -67,6 +67,7 @@
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
#include "GPU_batch.h"
+#include "GPU_init_exit.h"
#include "DNA_scene_types.h"
#include "ED_datafiles.h" /* for fonts */
@@ -1266,7 +1267,7 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
/* initialize OpenGL immediate mode */
g_WS.gwn_context = GWN_context_create();
- immInit();
+ GPU_init();
/* initialize the font */
BLF_init();
@@ -1540,7 +1541,7 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
GPU_shader_free_builtin_shaders();
- immDestroy();
+ GPU_exit();
if (g_WS.gwn_context) {
GWN_context_active_set(g_WS.gwn_context);