mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-13 01:28:10 +03:00
Replaced some math functions with analogs from AFT
This commit is contained in:
@@ -1418,14 +1418,14 @@ static void render_resize_fb(render_context* rctx, bool change_fb) {
|
||||
#if BAKE_PNG || BAKE_VIDEO
|
||||
vec2i internal_res = { (int32_t)res_width * BAKE_RES_SCALE, (int32_t)res_height * BAKE_RES_SCALE };
|
||||
internal_2d_res = vec2i::clamp(internal_res, 1, sv_max_texture_size);
|
||||
internal_3d_res.x = (int32_t)roundf((float_t)internal_res.x);
|
||||
internal_3d_res.y = (int32_t)roundf((float_t)internal_res.y);
|
||||
internal_3d_res.x = (int32_t)prj::roundf((float_t)internal_res.x);
|
||||
internal_3d_res.y = (int32_t)prj::roundf((float_t)internal_res.y);
|
||||
internal_3d_res = vec2i::clamp(internal_3d_res, 1, sv_max_texture_size);
|
||||
#else
|
||||
vec2i internal_res = { (int32_t)res_width, (int32_t)res_height };
|
||||
internal_2d_res = vec2i::clamp(internal_res, 1, sv_max_texture_size);
|
||||
internal_3d_res.x = (int32_t)roundf((float_t)(internal_res.x * render_scale_table[scale_index]));
|
||||
internal_3d_res.y = (int32_t)roundf((float_t)(internal_res.y * render_scale_table[scale_index]));
|
||||
internal_3d_res.x = (int32_t)prj::roundf((float_t)(internal_res.x * render_scale_table[scale_index]));
|
||||
internal_3d_res.y = (int32_t)prj::roundf((float_t)(internal_res.y * render_scale_table[scale_index]));
|
||||
internal_3d_res = vec2i::clamp(internal_3d_res, 1, sv_max_texture_size);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user