[Bf-blender-cvs] [bd49a765689] blender2.8: Fix T56121 and maybe others: DST.gpu_context was being created in the wrong DST.gl_context.
mano-wii
noreply at git.blender.org
Mon Jul 30 13:50:22 CEST 2018
Commit: bd49a765689a8abfb6662c0b748268d24b1b3d2a
Author: mano-wii
Date: Mon Jul 30 08:49:27 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBbd49a765689a8abfb6662c0b748268d24b1b3d2a
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.
===================================================================
M source/blender/draw/intern/draw_manager.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list