Some additional fixes

This commit is contained in:
korenkonder
2023-03-14 12:39:08 +03:00
parent ff251da99a
commit e14fcd4f36
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -109,6 +109,7 @@ texture* texture_copy(texture_id id, texture* org_tex) {
void* data = force_malloc(texture_get_size_mip_level(org_tex, i));
if (!data)
break;
if (org_tex->flags & TEXTURE_BLOCK_COMPRESSION) {
glBindTexture(org_tex->target, org_tex->tex);
glGetCompressedTexImage(org_tex->target, i, data);