fix unix build

This commit is contained in:
Brad Hefta-Gaub 2016-09-20 15:54:57 -07:00
parent 52f0b5f6c8
commit cc8aa540b4
2 changed files with 1 additions and 4 deletions

View file

@ -184,7 +184,6 @@ void HmdDisplayPlugin::internalPresent() {
sourceSize.x >>= 1; sourceSize.x >>= 1;
} }
float originalCenter = (sourceSize.x / 2);
float shiftLeftBy = getLeftCenterPixel() - (sourceSize.x / 2); float shiftLeftBy = getLeftCenterPixel() - (sourceSize.x / 2);
float newWidth = sourceSize.x - shiftLeftBy; float newWidth = sourceSize.x - shiftLeftBy;
@ -218,8 +217,6 @@ void HmdDisplayPlugin::internalPresent() {
ratio = (float)windowSize.y / (float)originalClippedSize.y; ratio = (float)windowSize.y / (float)originalClippedSize.y;
} }
float scaledWidth = newWidth * ratio;
float scaledShiftLeftBy = shiftLeftBy * ratio; float scaledShiftLeftBy = shiftLeftBy * ratio;
int scissorSizeX = originalClippedSize.x * ratio; int scissorSizeX = originalClippedSize.x * ratio;

View file

@ -102,7 +102,7 @@ protected:
bool _disablePreview{ true }; bool _disablePreview{ true };
private: private:
ivec4 getViewportForSourceSize(const uvec2& size) const; ivec4 getViewportForSourceSize(const uvec2& size) const;
float HmdDisplayPlugin::getLeftCenterPixel() const; float getLeftCenterPixel() const;
bool _disablePreviewItemAdded { false }; bool _disablePreviewItemAdded { false };
bool _monoPreview { true }; bool _monoPreview { true };