Browse Source

and fixed one more little bug

jp9000 12 years ago
parent
commit
7f59eebea5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs-opengl/gl-texturecube.c

+ 1 - 1
libobs-opengl/gl-texturecube.c

@@ -72,7 +72,7 @@ texture_t device_create_cubetexture(device_t device, uint32_t size,
 	return (texture_t)tex;
 	return (texture_t)tex;
 
 
 fail:
 fail:
-	texture_destroy((texture_t)tex);
+	cubetexture_destroy((texture_t)tex);
 	blog(LOG_ERROR, "device_create_cubetexture (GL) failed");
 	blog(LOG_ERROR, "device_create_cubetexture (GL) failed");
 	return NULL;
 	return NULL;
 }
 }