diff --git a/libobs-opengl/gl-texturecube.c b/libobs-opengl/gl-texturecube.c index 7df1c3b6f7ca6cdf3f2cea77c449c5cd6f799b0e..9f0c776e31d7a2490d5e0b1bf2721f3d72d4fcb7 100644 --- a/libobs-opengl/gl-texturecube.c +++ b/libobs-opengl/gl-texturecube.c @@ -72,7 +72,7 @@ texture_t device_create_cubetexture(device_t device, uint32_t size, return (texture_t)tex; fail: - texture_destroy((texture_t)tex); + cubetexture_destroy((texture_t)tex); blog(LOG_ERROR, "device_create_cubetexture (GL) failed"); return NULL; }