Some additional fixes

This commit is contained in:
korenkonder
2023-03-14 12:39:08 +03:00
parent ff251da99a
commit e14fcd4f36
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ static void auth_3d_curve_load(auth_3d* auth, auth_3d_curve* c, auth_3d_curve_fi
static void auth_3d_dof_load(auth_3d* auth, auth_3d_dof* d, auth_3d_dof_file* df);
static void auth_3d_dof_restore_prev_value(auth_3d_dof* d, render_context* rctx);
static void auth_3d_dof_set(auth_3d_dof* d, render_context* rctx);
static auth_3d_detail::Event* auth_3d_event_load(auth_3d * auth, auth_3d_event_file * ef);
static auth_3d_detail::Event* auth_3d_event_load(auth_3d* auth, auth_3d_event_file* ef);
static const char* auth_3d_event_type_string(auth_3d_detail::Event::Type type);
static void auth_3d_fog_load(auth_3d* auth, auth_3d_fog* e, auth_3d_fog_file* ff);
static void auth_3d_fog_restore_prev_value(auth_3d_fog* f, render_context* rctx);
+1 -1
View File
@@ -2689,7 +2689,7 @@ void render_context::light_param_data_glow_set(light_param_glow* glow) {
}
void render_context::light_param_data_ibl_set(
light_param_ibl * ibl, light_param_data_storage* storage) {
light_param_ibl* ibl, light_param_data_storage* storage) {
if (!ibl->ready)
return;
+2 -2
View File
@@ -220,9 +220,9 @@ namespace rndr {
draw_pass_shadow_begin_make_shadowmap(rctx, shad, v11[i], j);
rctx->disp_manager.draw((mdl::ObjType)(mdl::OBJ_TYPE_SHADOW_CHARA + v11[i]));
if (rctx->disp_manager.get_obj_count((mdl::ObjType)(mdl::OBJ_TYPE_SHADOW_OBJECT_CHARA + v11[i])) > 0) {
glColorMask(field_2F8 ? GL_TRUE : GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
gl_state_set_color_mask(field_2F8 ? GL_TRUE : GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
rctx->disp_manager.draw((mdl::ObjType)(mdl::OBJ_TYPE_SHADOW_OBJECT_CHARA + i));
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
gl_state_set_color_mask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
}
draw_pass_shadow_end_make_shadowmap(rctx, shad, v11[i], j);
j++;
+1
View File
@@ -109,6 +109,7 @@ texture* texture_copy(texture_id id, texture* org_tex) {
void* data = force_malloc(texture_get_size_mip_level(org_tex, i));
if (!data)
break;
if (org_tex->flags & TEXTURE_BLOCK_COMPRESSION) {
glBindTexture(org_tex->target, org_tex->tex);
glGetCompressedTexImage(org_tex->target, i, data);