From: Kristian Høgsberg Date: Thu, 28 May 2009 00:07:38 +0000 (-0400) Subject: Update gears example to latest eagle API changes X-Git-Tag: 0.85.0~586 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cda0e0db98d19c3e95621a61c9a7f78091bb7e1a;p=profile%2Fivi%2Fwayland.git Update gears example to latest eagle API changes --- diff --git a/gears.c b/gears.c index 2b7b29e..d32aa96 100644 --- a/gears.c +++ b/gears.c @@ -261,12 +261,11 @@ resize_window(struct gears *gears) if (gears->surface != NULL) eglDestroySurface(gears->display, gears->surface); - gears->surface = eglCreateSurfaceForName(gears->display, - gears->config, - 0, - gears->rectangle.width, - gears->rectangle.height, - 0, NULL); + gears->surface = eglCreateSurface(gears->display, + gears->config, + gears->rectangle.width, + gears->rectangle.height, + 1, NULL); eglMakeCurrent(gears->display, gears->surface, gears->surface, gears->context); @@ -317,7 +316,7 @@ handle_frame(void *data, struct gears *gears = data; uint32_t name, handle, stride; - eglGetNativeBuffer(gears->surface, GL_FRONT_LEFT, &name, &handle, &stride); + eglGetColorBuffer(gears->surface, 0, &name, &handle, &stride); window_copy(gears->window, &gears->rectangle, name, stride);