Skip to content

Commit

Permalink
tmem max
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Sep 30, 2024
1 parent 2102a25 commit c316516
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fast64_internal/f3d/glTF/f3d_gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
get_gltf_image_from_blender_image,
get_gltf_settings,
is_import_context,
prefix_function,
swap_function,
suffix_function,
GLTF2_ADDON_VERSION,
Expand All @@ -33,7 +32,6 @@
from ..f3d_material import (
all_combiner_uses,
get_color_info_from_tex,
getTmemMax,
link_if_none_exist,
remove_first_link_if_exists,
rendermode_presets_checks,
Expand Down Expand Up @@ -432,7 +430,7 @@ def f3d_to_gltf2_texture(
if self.settings.raise_texture_limits and f3d_tex.tex_set:
tex_size = f3d_tex.tex_size
tmem_usage = f3d_tex.word_usage
tmem_max = getTmemMax(f3d_tex.tex_format)
tmem_max = 256 if f3d_tex.is_ci else 512

if f3d_mat.use_large_textures and tex_size[0] > 1024 or tex_size[1] > 1024:
raise PluginError(
Expand Down

0 comments on commit c316516

Please sign in to comment.