mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
2008-02-03 Matthew Allum <mallum@openedhand.com>
* 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)
This commit is contained in:
parent
b97c326eca
commit
4e147c8843
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user