Cleanup: use 2x copy calls for camera_uv_scale/camera_uv_bias
One copy_v4_v4 call was used to initialize both camera_uv_scale & camera_uv_bias, replace this with 2x copy calls since passing in smaller buffers to copy functions is typically an error.
This commit is contained in:
parent
7ce68904eb
commit
fc266730a2
|
@ -246,10 +246,12 @@ void EEVEE_materials_init(EEVEE_ViewLayerData *sldata,
|
|||
}
|
||||
|
||||
if (draw_ctx->rv3d) {
|
||||
copy_v4_v4(sldata->common_data.camera_uv_scale, draw_ctx->rv3d->viewcamtexcofac);
|
||||
copy_v2_v2(sldata->common_data.camera_uv_scale, &draw_ctx->rv3d->viewcamtexcofac[0]);
|
||||
copy_v2_v2(sldata->common_data.camera_uv_bias, &draw_ctx->rv3d->viewcamtexcofac[2]);
|
||||
}
|
||||
else {
|
||||
copy_v4_fl4(sldata->common_data.camera_uv_scale, 1.0f, 1.0f, 0.0f, 0.0f);
|
||||
copy_v2_fl2(sldata->common_data.camera_uv_scale, 1.0f, 1.0f);
|
||||
copy_v2_fl2(sldata->common_data.camera_uv_bias, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
if (!DRW_state_is_image_render() && ((stl->effects->enabled_effects & EFFECT_TAA) == 0)) {
|
||||
|
|
Loading…
Reference in New Issue