mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-13 01:28:10 +03:00
Texture related corrections
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user