summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-19 13:17:59 -0700
committerEric Anholt <eric@anholt.net>2010-07-19 13:17:59 -0700
commit2b011004e68111856d154d592fd1ac4626369b46 (patch)
tree2936d3218391591429a72ec9f13d87322d99bd95
parentc7c4ba45a1747c4d8aeb4e5b0e2b595ec58b8d27 (diff)
Update to current cairo-gl api.HEADmaster
-rw-r--r--cairogears.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cairogears.c b/cairogears.c
index 62e64af..07b222c 100644
--- a/cairogears.c
+++ b/cairogears.c
@@ -109,7 +109,7 @@ alarmhandler (int sig)
alarm(5);
}
-static cairo_gl_context_t *
+static cairo_device_t *
cairogears_gl_context_create(Display *dpy, GLXContext *out_gl_ctx)
{
int attribs[] = { GLX_RGBA,
@@ -121,7 +121,7 @@ cairogears_gl_context_create(Display *dpy, GLXContext *out_gl_ctx)
None };
GLXContext gl_ctx;
XVisualInfo *visinfo;
- cairo_gl_context_t *ctx;
+ cairo_device_t *ctx;
visinfo = glXChooseVisual (dpy, DefaultScreen (dpy), attribs);
if (visinfo == NULL) {
@@ -134,7 +134,7 @@ cairogears_gl_context_create(Display *dpy, GLXContext *out_gl_ctx)
XFree(visinfo);
- ctx = cairo_glx_context_create (dpy, gl_ctx);
+ ctx = cairo_glx_device_create (dpy, gl_ctx);
return ctx;
}
@@ -168,7 +168,7 @@ main (int argc, char **argv)
unsigned int width, height, window_width, window_height;
cairo_surface_t *win_surface;
cairo_surface_t *surface;
- cairo_gl_context_t *ctx = NULL;
+ cairo_device_t *ctx = NULL;
cairo_t *cr;
int i;