Check dimensions and allocation result in GLSurfaceOSMesa::Resize.