mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Re add fix for hmd after merge
This commit is contained in:
parent
2b75240771
commit
2ca1fda71b
1 changed files with 3 additions and 0 deletions
|
@ -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([&] {
|
||||
|
|
Loading…
Reference in a new issue