mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 04:15:14 +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 {
|
QImage OpenGLDisplayPlugin::getScreenshot() const {
|
||||||
auto size = _compositeFramebuffer->getSize();
|
auto size = _compositeFramebuffer->getSize();
|
||||||
|
if (isHmd()) {
|
||||||
|
size.x /= 2;
|
||||||
|
}
|
||||||
auto glBackend = const_cast<OpenGLDisplayPlugin&>(*this).getGLBackend();
|
auto glBackend = const_cast<OpenGLDisplayPlugin&>(*this).getGLBackend();
|
||||||
QImage screenshot(size.x, size.y, QImage::Format_ARGB32);
|
QImage screenshot(size.x, size.y, QImage::Format_ARGB32);
|
||||||
withMainThreadContext([&] {
|
withMainThreadContext([&] {
|
||||||
|
|
Loading…
Reference in a new issue