mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
backends/native: update glyph cache on resume
As mentioned in a previous commit, the proprietary NVIDIA driver garbles memory on suspend. That behavior, means that clutter's glyph cache (which is stored in GPU memory) gets corrupted on suspend. This commit ensures the glyph cache is blown away when the logind session becomes active (on VT switch and resume).
This commit is contained in:
parent
f9907d1978
commit
6ff42c2ab2
@ -653,7 +653,10 @@ void meta_backend_native_resume (MetaBackendNative *native)
|
||||
MetaIdleMonitor *idle_monitor;
|
||||
|
||||
if (cogl_has_feature (cogl_context, COGL_FEATURE_ID_UNSTABLE_TEXTURES))
|
||||
{
|
||||
clutter_clear_glyph_cache ();
|
||||
g_signal_emit_by_name (display, "gl-video-memory-purged");
|
||||
}
|
||||
|
||||
meta_monitor_manager_kms_resume (monitor_manager_kms);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user