Fix assertion failure in foveation fill_ubo when count is exhausted (#1002)
Co-authored-by: HttpAnimations <shawndouglasyt@gmail.com>
This commit is contained in:
co-authored by
HttpAnimations
parent
1689715a69
commit
6ad8f4546b
@@ -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)};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user