Add color clearing on Fb::bind() (see love issue #17, comment #5)

This commit is contained in:
Matthias Richter
2010-08-11 21:10:31 +02:00
parent e5c2f063e8
commit b734a39f4d
+1
View File
@@ -94,6 +94,7 @@ namespace opengl
glPushAttrib(GL_VIEWPORT_BIT | GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glClearColor(.0f, .0f, .0f, .0f);
glViewport(0, 0, width, height);
}