Browse Source

Prevent redundant DrawBuffers assignment on OpenGL.

Lasse Öörni 14 years ago
parent
commit
0c63191a49
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Engine/Graphics/OpenGL/OGLGraphics.cpp

+ 2 - 0
Engine/Graphics/OpenGL/OGLGraphics.cpp

@@ -1946,6 +1946,8 @@ void Graphics::SetDrawBuffers()
         glDrawBuffers(drawBufferCount, (const GLenum*)drawBufferIds);
     }
     
+    impl_->drawBuffers_ = newDrawBuffers;
+    
     glReadBuffer(GL_NONE);
 }