clean up old opengl code