{
Display *display = cairo_xlib_surface_get_display (surface);
Screen *screen = cairo_xlib_surface_get_screen (surface);
- Visual *visual = cairo_xlib_surface_get_visual (surface);;
+ Visual *visual = cairo_xlib_surface_get_visual (surface);
GdkGLXPixmap *glx_pixmap;
- GLXFBConfig *fbconfigs;
+ GLXFBConfig *fbconfigs, config;
int nfbconfigs;
XVisualInfo *visinfo;
VisualID visualid;
if (value == TRUE)
y_inverted = TRUE;
+ config = fbconfigs[i];
break;
}
glx_pixmap = g_slice_new0 (GdkGLXPixmap);
glx_pixmap->y_inverted = y_inverted;
glx_pixmap->display = display;
- glx_pixmap->drawable = glXCreatePixmap (display, fbconfigs[i],
+ glx_pixmap->drawable = glXCreatePixmap (display, config,
cairo_xlib_surface_get_drawable (surface),
pixmap_attributes);