fixed windows gl context problem for timer