Fix #135357: Overlay-Next: Reference images briefly disappear when entering orthographic view

depth_bias_winmat_ is computed after sync.
This commit is contained in:
Miguel Pozo
2025-03-03 13:46:13 +01:00
parent 008826cf2b
commit f2c7e60a8c

View File

@@ -359,7 +359,7 @@ class Empties : Overlay {
PassMain::Sub &sub = parent.sub("Sub", z);
if (depth_bias) {
sub.shader_set(res.shaders.image_plane_depth_bias.get());
sub.push_constant("depth_bias_winmat", depth_bias_winmat_);
sub.push_constant("depth_bias_winmat", &depth_bias_winmat_);
}
else {
sub.shader_set(res.shaders.image_plane.get());