From c9e208899b84895072ba171f9e6013ac28a06747 Mon Sep 17 00:00:00 2001 From: nobled Date: Thu, 25 Mar 2010 19:47:11 -0400 Subject: [PATCH] Fix passing the height in resize_window Otherwise the attr_list's height value is left at 0. --- gears.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gears.c b/gears.c index ff385a29..0059d07d 100644 --- a/gears.c +++ b/gears.c @@ -274,7 +274,7 @@ resize_window(struct gears *gears) if (gears->image) eglDestroyImageKHR(gears->display, gears->image); attribs[1] = gears->rectangle.width; - attribs[1] = gears->rectangle.height; + attribs[3] = gears->rectangle.height; gears->image = eglCreateImageKHR(gears->display, gears->context, EGL_SYSTEM_IMAGE_INTEL, NULL, attribs);