mirror of
https://github.com/overte-org/overte.git
synced 2025-04-10 19:29:07 +02:00
Avoiding to rely on the display plugin resource in the getHUDOperator to avoid a case of unallocated resource
This commit is contained in:
parent
9c14838443
commit
3509a797a1
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ void OpenGLDisplayPlugin::updateFrameData() {
|
|||
std::function<void(gpu::Batch&, const gpu::TexturePointer&)> OpenGLDisplayPlugin::getHUDOperator() {
|
||||
auto hudPipeline = _hudPipeline;
|
||||
auto hudStereo = isStereo();
|
||||
auto hudCompositeFramebufferSize = _compositeFramebuffer->getSize();
|
||||
auto hudCompositeFramebufferSize = getRecommendedRenderSize();
|
||||
std::array<glm::ivec4, 2> hudEyeViewports;
|
||||
for_each_eye([&](Eye eye) {
|
||||
hudEyeViewports[eye] = eyeViewport(eye);
|
||||
|
|
Loading…
Reference in a new issue