Texture related corrections

This commit is contained in:
korenkonder
2025-09-28 15:44:20 +03:00
parent a05b6fb9cf
commit 41aeea3339
3 changed files with 47 additions and 35 deletions
+2 -2
View File
@@ -806,9 +806,9 @@ static void draw_object_material_set_default(render_data_context& rend_data_ctx,
texture* tex = texture_manager_get_texture(texdata->tex_index);
if (!tex)
rend_data_ctx.shader_flags.arr[uni_type] = 1;
else if (tex->internal_format == GL_COMPRESSED_RED_RGTC1_EXT)
else if (tex->internal_format == GL_COMPRESSED_RED_RGTC1)
rend_data_ctx.shader_flags.arr[uni_type] = 3;
else if (tex->internal_format == GL_COMPRESSED_RED_GREEN_RGTC2_EXT)
else if (tex->internal_format == GL_COMPRESSED_RG_RGTC2)
rend_data_ctx.shader_flags.arr[uni_type] = 2;
else
rend_data_ctx.shader_flags.arr[uni_type] = 1;