From fb636008ad9f082c6b29a3a0e5dd95a54727ec87 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Thu, 26 Apr 2012 10:43:20 +0100 Subject: [PATCH] By default enable swap throttling This ensures that when we initialize a CoglOnscreenTemplate that ->swap_throttled is set to TRUE so by default Cogl applications should have their swap buffer requests throttled to the vblank frequency. Reviewed-by: Neil Roberts (cherry picked from commit bdac9ab56284fb84ec09af176c7e31c44dc1bfc6) --- cogl/cogl-onscreen-template.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cogl/cogl-onscreen-template.c b/cogl/cogl-onscreen-template.c index 1ce8b97fd..5fa5b99c8 100644 --- a/cogl/cogl-onscreen-template.c +++ b/cogl/cogl-onscreen-template.c @@ -57,6 +57,7 @@ cogl_onscreen_template_new (CoglSwapChain *swap_chain) else onscreen_template->config.swap_chain = cogl_swap_chain_new (); + onscreen_template->config.swap_throttled = TRUE; onscreen_template->config.need_stencil = TRUE; onscreen_template->config.samples_per_pixel = 0;