From 6ad8f4546bb562471def1cb3c6c38ace6fed1215 Mon Sep 17 00:00:00 2001 From: HttpAnimations Date: Fri, 3 Jul 2026 12:50:26 -0700 Subject: [PATCH] Fix assertion failure in foveation fill_ubo when count is exhausted (#1002) Co-authored-by: HttpAnimations --- server/compositor/foveation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/compositor/foveation.cpp b/server/compositor/foveation.cpp index 0b001e1a..7e255e2a 100644 --- a/server/compositor/foveation.cpp +++ b/server/compositor/foveation.cpp @@ -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)}; } }