fix for windows gl crash