wined3d: Avoid glBegin() / glEnd() in check_fbo_compat() when possible.