cleanup
swap interval
glGetError fix