Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -236,6 +236,11 @@ void wivrn_foveation::compute_params(
|
||||
tan_center[i].y = angles_to_center(-view.y - e.y, views[i].fov.angleUp, views[i].fov.angleDown);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (size_t i = 0; i < 2; ++i)
|
||||
tan_center[i].x = angles_to_center(0, fovs[i].angle_left, fovs[i].angle_right);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 2; ++i)
|
||||
{
|
||||
@@ -386,7 +391,7 @@ vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
|
||||
}
|
||||
|
||||
// Check if the last value is still valid
|
||||
if (last.flip_y == flip_y and last.src[0] == source[0] and last.src[1] == source[1] and last.fovs[0] == fovs[0])
|
||||
if (last.flip_y == flip_y and last.src[0] == source[0] and last.src[1] == source[1] and last.fovs[0] == fovs[0] and last.fovs[1] == fovs[1])
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
if (last.gaze == gaze)
|
||||
|
||||
Reference in New Issue
Block a user