Fix assertion failure in foveation fill_ubo when count is exhausted (#1002)

Co-authored-by: HttpAnimations <shawndouglasyt@gmail.com>
This commit is contained in:
HttpAnimations
2026-07-03 21:50:26 +02:00
committed by GitHub
co-authored by HttpAnimations
parent 1689715a69
commit 6ad8f4546b
+2 -2
View File
@@ -375,7 +375,7 @@ void foveation::compute_params()
fill_param_2d(center, foveated_size.width, extent_w, params[i].x);
}
else
params[i].x = {uint16_t(last.src[i].extent.w)};
params[i].x = {uint16_t(extent_w)};
size_t extent_h = std::abs(last.src[i].extent.h);
if (foveated_size.height < extent_h)
@@ -390,7 +390,7 @@ void foveation::compute_params()
fill_param_2d(center, foveated_size.height, extent_h, params[i].y);
}
else
params[i].y = {uint16_t(last.src[i].extent.h)};
params[i].y = {uint16_t(extent_h)};
}
}