-
Emmanuele Bassi authored
This reverts commit 07c7803c. Mutter was fixed by the following commit: commit 162213be0d1ce5d0cf1d6c40f7a65a8ab5861b57 Author: Jasper St. Pierre <jstpierre@mecheye.net> Date: Wed Nov 9 15:12:06 2011 -0500 Fix cogl crash from updating non-existent texture The code here was always incorrect - we were processing damage events for windows without having a texture. Before, this didn't matter, as cogl_texture_get_width silently returned 0 for invalid handles. Cogl commit 4c3dadd35e4657a151025118814534d05091d4db changed this. The fix here involves two strategies. First, we try to guard MetaTextureTower from invalid textures. Second, we try not to go down the path that eventually calls meta_shaped_texture_update_area by not handling damage events if we don't have a texture for the window. https://bugzilla.gnome.org/show_bug.cgi?id=660941
239fff9e