modifications to pass opengl tests