Re add fix for hmd after merge

This commit is contained in:
howard-stearns 2016-08-16 12:02:49 -07:00
parent 2b75240771
commit 2ca1fda71b

View file

@ -661,6 +661,9 @@ void OpenGLDisplayPlugin::withMainThreadContext(std::function<void()> f) const {
QImage OpenGLDisplayPlugin::getScreenshot() const {
auto size = _compositeFramebuffer->getSize();
if (isHmd()) {
size.x /= 2;
}
auto glBackend = const_cast<OpenGLDisplayPlugin&>(*this).getGLBackend();
QImage screenshot(size.x, size.y, QImage::Format_ARGB32);
withMainThreadContext([&] {