diff options
Diffstat (limited to 'video/out/opengl/ra.c')
-rw-r--r-- | video/out/opengl/ra.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/opengl/ra.c b/video/out/opengl/ra.c index 31f585fdf9..0ad70eeb47 100644 --- a/video/out/opengl/ra.c +++ b/video/out/opengl/ra.c @@ -28,6 +28,14 @@ void ra_buf_free(struct ra *ra, struct ra_buf **buf) *buf = NULL; } +void ra_free(struct ra **ra) +{ + if (*ra) + (*ra)->fns->destroy(*ra); + talloc_free(*ra); + *ra = NULL; +} + static size_t vartype_size(enum ra_vartype type) { switch (type) { |