Fixed editor viewport rendering black when opening multiple editor windows at the same time

This commit is contained in:
parax0 2016-12-24 02:11:25 -07:00
parent d96a3c2af7
commit 712e545c7b
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ void CRenderer::EndFrame()
{
// Copy result to the backbuffer
mSceneFramebuffer.Bind(GL_READ_FRAMEBUFFER);
CFramebuffer::BindDefaultFramebuffer(GL_DRAW_FRAMEBUFFER);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, mDefaultFramebuffer);
glViewport(0, 0, mViewportWidth, mViewportHeight);
glBlitFramebuffer(0, 0, mViewportWidth, mViewportHeight, 0, 0, mViewportWidth, mViewportHeight, GL_COLOR_BUFFER_BIT, GL_NEAREST);
gDrawCount = 0;