Skip to content

Commit fa90542

Browse files
authored
Merge pull request #1193 from asarium/fix/611
Disable resizing for cubemaps
2 parents 19583bc + e52b144 commit fa90542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/graphics/opengl/gropengltexture.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,8 @@ int opengl_create_texture(int bitmap_handle, int bitmap_type, tcache_slot_opengl
904904
}
905905

906906
if ( (Detail.hardware_textures < 4) && (bitmap_type != TCACHE_TYPE_AABITMAP) && (bitmap_type != TCACHE_TYPE_INTERFACE)
907-
&& ((bitmap_type != TCACHE_TYPE_COMPRESSED) || ((bitmap_type == TCACHE_TYPE_COMPRESSED) && (max_levels > 1))) )
907+
&& (bitmap_type != TCACHE_TYPE_CUBEMAP)
908+
&& ((bitmap_type != TCACHE_TYPE_COMPRESSED) || ((bitmap_type == TCACHE_TYPE_COMPRESSED) && (max_levels > 1))) )
908909
{
909910
if (max_levels == 1) {
910911
// if we are going to cull the size then we need to force a resize

0 commit comments

Comments
 (0)