mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
Work around COGL bug causing flash for new windows
COGL bug http://bugzilla.openedhand.com/show_bug.cgi?id=2110 results in pending drawing at the time of cogl_offscreen_new_to_texture() going to the newly created framebuffer rather than the stage. This would result in most windows being missing for the first frame when a new window is mapped. Work around this by calling cogl_flush() before cogl_offscreen_new_to_texture(). https://bugzilla.gnome.org/show_bug.cgi?id=618138
This commit is contained in:
parent
fd20059f68
commit
092cc47afc
@ -422,7 +422,12 @@ texture_tower_revalidate_fbo (MutterTextureTower *tower,
|
||||
CoglMatrix modelview;
|
||||
|
||||
if (tower->fbos[level] == COGL_INVALID_HANDLE)
|
||||
tower->fbos[level] = cogl_offscreen_new_to_texture (dest_texture);
|
||||
{
|
||||
/* Work around http://bugzilla.openedhand.com/show_bug.cgi?id=2110 */
|
||||
cogl_flush();
|
||||
|
||||
tower->fbos[level] = cogl_offscreen_new_to_texture (dest_texture);
|
||||
}
|
||||
|
||||
if (tower->fbos[level] == COGL_INVALID_HANDLE)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user