mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 18:13:47 +02:00
fix unix build
This commit is contained in:
parent
52f0b5f6c8
commit
cc8aa540b4
2 changed files with 1 additions and 4 deletions
|
@ -184,7 +184,6 @@ void HmdDisplayPlugin::internalPresent() {
|
|||
sourceSize.x >>= 1;
|
||||
}
|
||||
|
||||
float originalCenter = (sourceSize.x / 2);
|
||||
float shiftLeftBy = getLeftCenterPixel() - (sourceSize.x / 2);
|
||||
float newWidth = sourceSize.x - shiftLeftBy;
|
||||
|
||||
|
@ -218,8 +217,6 @@ void HmdDisplayPlugin::internalPresent() {
|
|||
ratio = (float)windowSize.y / (float)originalClippedSize.y;
|
||||
}
|
||||
|
||||
float scaledWidth = newWidth * ratio;
|
||||
|
||||
float scaledShiftLeftBy = shiftLeftBy * ratio;
|
||||
|
||||
int scissorSizeX = originalClippedSize.x * ratio;
|
||||
|
|
|
@ -102,7 +102,7 @@ protected:
|
|||
bool _disablePreview{ true };
|
||||
private:
|
||||
ivec4 getViewportForSourceSize(const uvec2& size) const;
|
||||
float HmdDisplayPlugin::getLeftCenterPixel() const;
|
||||
float getLeftCenterPixel() const;
|
||||
|
||||
bool _disablePreviewItemAdded { false };
|
||||
bool _monoPreview { true };
|
||||
|
|
Loading…
Reference in a new issue