Added hook for framebuffer resize.