diff options
Diffstat (limited to 'src/surface.c')
-rw-r--r-- | src/surface.c | 7 |
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, |