Merge pull request #1047 from tomhog/th-MultiView

Setting numViews value in glFramebufferTextureMultiviewOVR call
This commit is contained in:
Robert Osfield 2021-02-19 12:57:49 +00:00 committed by GitHub
commit d1649aeed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -540,7 +540,7 @@ void FrameBufferAttachment::attach(State &state, GLenum target, GLenum attachmen
{
if (ext->glFramebufferTextureMultiviewOVR)
{
ext->glFramebufferTextureMultiviewOVR(target, attachment_point, tobj->id(), _ximpl->level, 0, 2);
ext->glFramebufferTextureMultiviewOVR(target, attachment_point, tobj->id(), _ximpl->level, 0, _ximpl->textureTarget->getTextureDepth());
}
}
else