Browse Source

Issue #4: Now really clearing with 0 alpha

vrld 15 years ago
parent
commit
9dd4be5e31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/opengl/Framebuffer.cpp

+ 1 - 1
src/modules/graphics/opengl/Framebuffer.cpp

@@ -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