summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate-cogl.c5
-rw-r--r--boilerplate/cairo-boilerplate-egl.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/boilerplate/cairo-boilerplate-cogl.c b/boilerplate/cairo-boilerplate-cogl.c
index 2339dd883..0982e4133 100644
--- a/boilerplate/cairo-boilerplate-cogl.c
+++ b/boilerplate/cairo-boilerplate-cogl.c
@@ -31,7 +31,6 @@
*/
#include "cairo-boilerplate-private.h"
-#include "cairo-malloc-private.h"
#include <cairo-cogl.h>
#include <cogl/cogl2-experimental.h>
@@ -81,7 +80,7 @@ _cairo_boilerplate_cogl_create_offscreen_color_surface (const char *name,
/* The device will take a reference on the context */
cogl_object_unref (context);
- closure = _cairo_malloc (sizeof (cogl_closure_t));
+ closure = malloc (sizeof (cogl_closure_t));
*abstract_closure = closure;
closure->device = device;
closure->surface = cairo_cogl_offscreen_surface_create (device,
@@ -152,7 +151,7 @@ _cairo_boilerplate_cogl_create_onscreen_color_surface (const char *name,
/* The device will take a reference on the context */
cogl_object_unref (context);
- closure = _cairo_malloc (sizeof (cogl_closure_t));
+ closure = malloc (sizeof (cogl_closure_t));
*abstract_closure = closure;
closure->device = device;
closure->surface = cairo_cogl_onscreen_surface_create (device,
diff --git a/boilerplate/cairo-boilerplate-egl.c b/boilerplate/cairo-boilerplate-egl.c
index c44441cc5..8196b1ffd 100644
--- a/boilerplate/cairo-boilerplate-egl.c
+++ b/boilerplate/cairo-boilerplate-egl.c
@@ -42,8 +42,6 @@
#include <GL/gl.h>
#endif
-static const cairo_user_data_key_t gl_closure_key;
-
typedef struct _egl_target_closure {
EGLDisplay dpy;
EGLContext ctx;