use OpenGL’s StateVar instead of Data.StateVar