summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backends/x11/meta-backend-x11.c2
-rw-r--r--src/backends/x11/meta-renderer-x11.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c
index f447f785f..acb2b1d90 100644
--- a/src/backends/x11/meta-backend-x11.c
+++ b/src/backends/x11/meta-backend-x11.c
@@ -705,8 +705,6 @@ meta_backend_x11_init (MetaBackendX11 *x11)
*/
XInitThreads();
- clutter_x11_request_reset_on_video_memory_purge ();
-
/* We do X11 event retrieval ourselves */
clutter_x11_disable_event_retrieval ();
}
diff --git a/src/backends/x11/meta-renderer-x11.c b/src/backends/x11/meta-renderer-x11.c
index 2e2958b09..bb52d3caf 100644
--- a/src/backends/x11/meta-renderer-x11.c
+++ b/src/backends/x11/meta-renderer-x11.c
@@ -74,6 +74,7 @@ meta_renderer_x11_create_cogl_renderer (MetaRenderer *renderer)
cogl_renderer_set_custom_winsys (cogl_renderer, get_x11_cogl_winsys_vtable,
NULL);
cogl_xlib_renderer_set_foreign_display (cogl_renderer, xdisplay);
+ cogl_xlib_renderer_request_reset_on_video_memory_purge (cogl_renderer, TRUE);
/* Set up things so that if the INTEL_swap_event extension is not present,
* but the driver is known to have good thread support, we use an extra