From 882687934c449faea583964b7dc6aba28c61b0f2 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sat, 4 Jan 2020 01:28:16 -0800 Subject: [PATCH] libobs-opengl: Fix volume texture leak --- libobs-opengl/gl-subsystem.c | 6 ------ libobs-opengl/gl-texture3d.c | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libobs-opengl/gl-subsystem.c b/libobs-opengl/gl-subsystem.c index 00bc561dd..57c25ded6 100644 --- a/libobs-opengl/gl-subsystem.c +++ b/libobs-opengl/gl-subsystem.c @@ -1407,12 +1407,6 @@ void gs_swapchain_destroy(gs_swapchain_t *swapchain) bfree(swapchain); } -void gs_voltexture_destroy(gs_texture_t *voltex) -{ - /* TODO */ - UNUSED_PARAMETER(voltex); -} - uint32_t gs_voltexture_get_width(const gs_texture_t *voltex) { /* TODO */ diff --git a/libobs-opengl/gl-texture3d.c b/libobs-opengl/gl-texture3d.c index bc4453296..a63bd90d6 100644 --- a/libobs-opengl/gl-texture3d.c +++ b/libobs-opengl/gl-texture3d.c @@ -179,3 +179,8 @@ fail: blog(LOG_ERROR, "device_voltexture_create (GL) failed"); return NULL; } + +void gs_voltexture_destroy(gs_texture_t *voltex) +{ + gs_texture_destroy(voltex); +}