mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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 <neil@linux.intel.com> (cherry picked from commit bdac9ab56284fb84ec09af176c7e31c44dc1bfc6)
This commit is contained in:
parent
a945890de6
commit
fb636008ad
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user