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
path: root/source
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2018-07-30 14:49:27 +0300
committermano-wii <germano.costa@ig.com.br>2018-07-30 14:49:27 +0300
commitbd49a765689a8abfb6662c0b748268d24b1b3d2a (patch)
treec64ac122b83164927205dad1947a6b527e04f88b /source
parent914e4d121263ae02dd33f27827417316726778d7 (diff)
Fix T56121 and maybe others: DST.gpu_context was being created in the wrong DST.gl_context.
In addition to the crash in the selection of bones, this was responsible for other problems such as wrong hair and disappearing objects.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index cc4f8ec7947..0a15fb3a114 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -2351,6 +2351,7 @@ void DRW_opengl_context_create(void)
}
/* This changes the active context. */
DST.gl_context = WM_opengl_context_create();
+ WM_opengl_context_activate(DST.gl_context);
/* Be sure to create gawain.context too. */
DST.gpu_context = GPU_context_create();
if (!G.background) {