bugfixed opengl invalid enum error on legacy Intel card