mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
backend/native: Fix compiler warning w/out EGL device
When building without EGL device support, the following compiler warning is seen: ``` src/backends/native/meta-renderer-native.c:2637:20: warning: unused variable ‘cogl_renderer_egl’ [-Wunused-variable] ``` Fix the warning by placing the relevant variable declarations within the `#ifdef HAVE_EGL_DEVICE/#endif` statement. https://gitlab.gnome.org/GNOME/mutter/merge_requests/656
This commit is contained in:
parent
f2fb3945d1
commit
85f4772a4f
@ -2633,8 +2633,6 @@ meta_renderer_native_release_onscreen (CoglOnscreen *onscreen)
|
||||
CoglContext *cogl_context = framebuffer->context;
|
||||
CoglDisplay *cogl_display = cogl_context_get_display (cogl_context);
|
||||
CoglDisplayEGL *cogl_display_egl = cogl_display->winsys;
|
||||
CoglRenderer *cogl_renderer = cogl_context->display->renderer;
|
||||
CoglRendererEGL *cogl_renderer_egl = cogl_renderer->winsys;
|
||||
CoglOnscreenEGL *onscreen_egl = onscreen->winsys;
|
||||
MetaOnscreenNative *onscreen_native;
|
||||
MetaRendererNative *renderer_native;
|
||||
@ -2688,6 +2686,8 @@ meta_renderer_native_release_onscreen (CoglOnscreen *onscreen)
|
||||
if (onscreen_native->egl.stream != EGL_NO_STREAM_KHR)
|
||||
{
|
||||
MetaEgl *egl = meta_onscreen_native_get_egl (onscreen_native);
|
||||
CoglRenderer *cogl_renderer = cogl_context->display->renderer;
|
||||
CoglRendererEGL *cogl_renderer_egl = cogl_renderer->winsys;
|
||||
|
||||
meta_egl_destroy_stream (egl,
|
||||
cogl_renderer_egl->edpy,
|
||||
|
Loading…
Reference in New Issue
Block a user