resize of framebuffer works properly.