opengl rendering to the wrong window