window: Remove unused variable
This commit is contained in:
@@ -316,7 +316,6 @@ display_create_egl_image_surface(struct display *display,
|
|||||||
struct egl_image_surface_data *data;
|
struct egl_image_surface_data *data;
|
||||||
EGLDisplay dpy = display->dpy;
|
EGLDisplay dpy = display->dpy;
|
||||||
cairo_surface_t *surface;
|
cairo_surface_t *surface;
|
||||||
EGLConfig config;
|
|
||||||
cairo_content_t content;
|
cairo_content_t content;
|
||||||
|
|
||||||
data = malloc(sizeof *data);
|
data = malloc(sizeof *data);
|
||||||
@@ -334,11 +333,9 @@ display_create_egl_image_surface(struct display *display,
|
|||||||
|
|
||||||
if (flags & SURFACE_OPAQUE) {
|
if (flags & SURFACE_OPAQUE) {
|
||||||
data->device = display->rgb_device;
|
data->device = display->rgb_device;
|
||||||
config = display->rgb_config;
|
|
||||||
content = CAIRO_CONTENT_COLOR;
|
content = CAIRO_CONTENT_COLOR;
|
||||||
} else {
|
} else {
|
||||||
data->device = display->argb_device;
|
data->device = display->argb_device;
|
||||||
config = display->premultiplied_argb_config;
|
|
||||||
content = CAIRO_CONTENT_COLOR_ALPHA;
|
content = CAIRO_CONTENT_COLOR_ALPHA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user