From 9dd4be5e3170367fd2dd275582fd364bdae76274 Mon Sep 17 00:00:00 2001 From: vrld Date: Fri, 27 Aug 2010 14:38:36 +0200 Subject: [PATCH] Issue #4: Now really clearing with 0 alpha --- src/modules/graphics/opengl/Framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Framebuffer.cpp b/src/modules/graphics/opengl/Framebuffer.cpp index 287db0048..34dd06bb2 100644 --- a/src/modules/graphics/opengl/Framebuffer.cpp +++ b/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