Issue #4: Now really clearing with 0 alpha

This commit is contained in:
vrld
2010-08-27 14:38:36 +02:00
parent ce6ca185f1
commit 9dd4be5e31
+1 -1
View File
@@ -236,8 +236,8 @@ namespace opengl
// bind buffer and clear screen
glPushAttrib(GL_VIEWPORT_BIT | GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
strategy->bindFBO(fbo);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glClearColor(.0f, .0f, .0f, .0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glViewport(0, 0, width, height);
// indicate we are using this fbo