diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-07-30 14:49:27 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-07-30 14:49:27 +0300 |
commit | bd49a765689a8abfb6662c0b748268d24b1b3d2a (patch) | |
tree | c64ac122b83164927205dad1947a6b527e04f88b /source/blender/draw/intern | |
parent | 914e4d121263ae02dd33f27827417316726778d7 (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/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 1 |
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) { |