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:
mano-wii
2018-07-30 08:49:27 -03:00
parent 914e4d1212
commit bd49a76568

View File

@@ -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) {