And that's why literally the second thing the Wiki says about framebuffer clearing is that write masks are obeyed.