Skip to content

Commit

Permalink
Merge pull request #5712 from Armada651/fix-fbo-layers
Browse files Browse the repository at this point in the history
FramebufferManager: Fix EFB layers being attached to the wrong FBO.
  • Loading branch information
CrossVR committed Jun 27, 2017
2 parents 951f640 + 4a7b96c commit a63ee78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/OGL/FramebufferManager.cpp
Expand Up @@ -97,7 +97,7 @@ void FramebufferManager::BindLayeredTexture(GLuint texture, const std::vector<GL
// Bind all the other layers as separate FBOs for blitting.
for (unsigned int i = 1; i < m_EFBLayers; i++)
{
glBindFramebuffer(GL_FRAMEBUFFER, m_resolvedFramebuffer[i]);
glBindFramebuffer(GL_FRAMEBUFFER, framebuffers[i]);
glFramebufferTextureLayer(GL_FRAMEBUFFER, attachment, texture, 0, i);
}
}
Expand Down

0 comments on commit a63ee78

Please sign in to comment.