mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 01:48:55 +00:00
renderer-native: Fix compilation when EGLDevice renderer not enabled
When --enable-egl-device is not passed to ./configure, the egl_device_error will not be declared; don't try to free it when its not declared.
This commit is contained in:
parent
7eea82d3d7
commit
1303c626b1
@ -2082,7 +2082,9 @@ meta_renderer_native_initable_init (GInitable *initable,
|
|||||||
|
|
||||||
if (init_gbm (renderer_native, &gbm_error))
|
if (init_gbm (renderer_native, &gbm_error))
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_EGL_DEVICE
|
||||||
g_error_free (egl_device_error);
|
g_error_free (egl_device_error);
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user