cogl: Fix memory allocation of CoglGLContext
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3440>
This commit is contained in:
parent
625a7950c4
commit
48515d917c
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ _cogl_driver_gl_context_init (CoglContext *context)
|
||||||
CoglGLContext *gl_context;
|
CoglGLContext *gl_context;
|
||||||
|
|
||||||
if (!context->driver_context)
|
if (!context->driver_context)
|
||||||
context->driver_context = g_new0 (CoglContext, 1);
|
context->driver_context = g_new0 (CoglGLContext, 1);
|
||||||
|
|
||||||
gl_context = _cogl_driver_gl_context (context);
|
gl_context = _cogl_driver_gl_context (context);
|
||||||
if (!gl_context)
|
if (!gl_context)
|
||||||
|
|
Loading…
Reference in a new issue