Browse Source

libobs-opengl: Fix volume texture leak

jpark37 5 years ago
parent
commit
882687934c
2 changed files with 5 additions and 6 deletions
  1. 0 6
      libobs-opengl/gl-subsystem.c
  2. 5 0
      libobs-opengl/gl-texture3d.c

+ 0 - 6
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 */

+ 5 - 0
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);
+}