1
0
Fork 0

cogl: Fix memory allocation of CoglGLContext

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3440>
This commit is contained in:
Qiu Wenbo 2023-11-29 18:23:33 +08:00
parent 625a7950c4
commit 48515d917c

View file

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