fix view port bug for GL: When a GL context is first attached to a window, width and height of view port are set to the dimensions of that window.