main: Reload theme on video memory purge errors

The theme machinery uses FBOs in some cases (mainly for shadows) which
need to be reloaded if we get a video memory purged error.

https://bugzilla.gnome.org/show_bug.cgi?id=739178
This commit is contained in:
Rui Matos 2016-06-03 15:20:20 +02:00
parent 2a7f9f70b8
commit 358f64d66b

View File

@ -191,6 +191,8 @@ function _initializeUI() {
return true; return true;
}); });
global.display.connect('gl-video-memory-purged', loadTheme);
// Provide the bus object for gnome-session to // Provide the bus object for gnome-session to
// initiate logouts. // initiate logouts.
EndSessionDialog.init(); EndSessionDialog.init();