Skip to content

Commit c27d67d

Browse files
committed
Revive: Ignore pixelsPerDisplayPixel, reprojection is good enough now.
1 parent 35c7bf0 commit c27d67d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Revive/REV_CAPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,8 @@ OVR_PUBLIC_FUNCTION(ovrSizei) ovr_GetFovTextureSize(ovrSession session, ovrEyeTy
775775
// Grow the recommended size to account for the overlapping fov
776776
// TODO: Add a setting to ignore pixelsPerDisplayPixel
777777
vr::VRTextureBounds_t bounds = CompositorBase::FovPortToTextureBounds(desc->Fov, fov);
778-
size.w = int((size.w * pixelsPerDisplayPixel) / (bounds.uMax - bounds.uMin));
779-
size.h = int((size.h * pixelsPerDisplayPixel) / (bounds.vMax - bounds.vMin));
778+
size.w = int(size.w / (bounds.uMax - bounds.uMin));
779+
size.h = int(size.h / (bounds.vMax - bounds.vMin));
780780

781781
return size;
782782
}

0 commit comments

Comments
 (0)