summaryrefslogtreecommitdiff
path: root/src/surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface.c')
-rw-r--r--src/surface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/surface.c b/src/surface.c
index 76abec9..81b2b58 100644
--- a/src/surface.c
+++ b/src/surface.c
@@ -19,6 +19,13 @@ void surface_initialise(
gl_initialise(&surface->gl, texture);
}
+void surface_destroy(struct surface *surface)
+{
+ egl_make_current(&surface->egl);
+ gl_destroy(&surface->gl);
+ egl_destroy(&surface->egl);
+}
+
void surface_draw(
struct surface *surface,
struct color *color,