Fixed RenderTexture bug

Former-commit-id: daedd6e95b7825389438585cbaff60ae07a07eef
This commit is contained in:
Lynix 2013-03-02 00:21:10 +01:00
parent 0df64e03ae
commit c3b2a0a03f
1 changed files with 1 additions and 1 deletions

View File

@ -688,8 +688,8 @@ bool NzRenderTexture::Activate()
m_impl->drawBuffersUpdated = true;
}
glDrawBuffers(m_impl->drawBuffers.size(), &m_impl->drawBuffers[0]);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, m_impl->fbo);
glDrawBuffers(m_impl->drawBuffers.size(), &m_impl->drawBuffers[0]);
return true;
}