Skip to content

Commit e52b144

Browse files
committed
Disable resizing for cubemaps
Since the cubmap loading code explicitly states that it doesn't support resizing it's only logical to skip that if the bitmap that is currently being loaded is a cube map. This fixes #611.
1 parent e8d21a0 commit e52b144

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)