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.
This commit is contained in:
parent
914e4d1212
commit
bd49a76568
Notes:
blender-bot
2023-02-14 05:31:33 +01:00
Referenced by issue #56121, Crash when selecting bones in edit mode
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue