MSAADownsampler bugfix: glFramebufferTexture3D does not accept 2D_ARRAY textures.
Additional error check at the end of attachment iteration in queryFBO()
Fixed some errors in fbo_msaa sample.