From 4e147c8843dc3a45c53b1232f7a811607de3da7b Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Sun, 3 Feb 2008 01:53:10 +0000 Subject: [PATCH] 2008-02-03 Matthew Allum * clutter/clutter-shader.c: Minor formatting cleanups to fit in 80 cols. * clutter/clutter-texture.c: More safety checks, clean ups in clutter_texture_new_from_actor() * clutter/cogl/gl/cogl.c: Always clear the FBO initially when rendering * tests/test-fbo.c: Overhall the test as to be more useful (and show current issues) --- gl/cogl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gl/cogl.c b/gl/cogl.c index 02f8e4e4b..39a673551 100644 --- a/gl/cogl.c +++ b/gl/cogl.c @@ -909,6 +909,11 @@ cogl_offscreen_redirect_start (COGLuint offscreen_handle, glTranslatef (-1.0f, -1.0f, 0.0f); glScalef (2.0f / (float)width, 2.0f / (float)height, 1.0f); + + /* Clear the scene, appears needed on some backends - OSX */ + glClearColor (0.0, 0.0, 0.0, 0.0); + glClear (GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); + #endif }