tests: Use an internal setter for disabling vblank sync

Instead of using g_setenv().
This commit is contained in:
Emmanuele Bassi
2013-12-12 18:11:03 +00:00
parent 526d0ea884
commit b1eb412c23
3 changed files with 11 additions and 4 deletions

View File

@ -10,6 +10,7 @@
#include "clutter-event.h"
#include "clutter-keysyms.h"
#include "clutter-main.h"
#include "clutter-private.h"
#include "clutter-stage.h"
typedef struct {
@ -54,11 +55,10 @@ clutter_test_init (int *argc,
}
#endif
/* by explicitly setting CLUTTER_VBLANK to "none" we disable the
* synchronisation, and run the master clock using a 60 fps timer
* instead.
/* we explicitly disable the synchronisation to the vertical refresh
* rate, and run the master clock using a 60 fps timer instead.
*/
g_setenv ("CLUTTER_VBLANK", "none", FALSE);
_clutter_set_sync_to_vblank (FALSE);
g_test_init (argc, argv, NULL);
g_test_bug_base ("https://bugzilla.gnome.org/show_bug.cgi?id=%s");