From 5990fbb6e253d78a1f5403a19d168ce75b5d27be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 10 Apr 2012 16:55:11 -0400 Subject: [PATCH] window: Fix remaining references to the egl image surface type Didn't catch these before, was compiling with sw cairo. --- clients/window.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/clients/window.c b/clients/window.c index 53f8593..c7a0582 100644 --- a/clients/window.c +++ b/clients/window.c @@ -478,17 +478,11 @@ display_create_surface(struct display *display, if (check_size(rectangle) < 0) return NULL; #ifdef HAVE_CAIRO_EGL - if (display->dpy) { - if (surface) - return display_create_egl_window_surface(display, - surface, - flags, - rectangle); - else - return display_create_egl_image_surface(display, - flags, - rectangle); - } + if (display->dpy) + return display_create_egl_window_surface(display, + surface, + flags, + rectangle); #endif return display_create_shm_surface(display, rectangle, flags, NULL); } @@ -500,13 +494,7 @@ display_create_surface_from_file(struct display *display, { if (check_size(rectangle) < 0) return NULL; -#ifdef HAVE_CAIRO_EGL - if (display->dpy) { - return display_create_egl_image_surface_from_file(display, - filename, - rectangle); - } -#endif + return display_create_shm_surface_from_file(display, filename, rectangle); } static const struct { -- 2.7.4