mesa: FramebufferParameteri parameter checking
authorFritz Koenig <frkoenig@google.com>
Fri, 14 Sep 2018 18:40:49 +0000 (11:40 -0700)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Mon, 17 Sep 2018 18:48:00 +0000 (11:48 -0700)
Missing break; causes parameter checking to
never pass GL_FRAMEBUFFER_FLIP_Y_MESA parameters.

Fixes: 318c265160 ("mesa: GL_MESA_framebuffer_flip_y extension [v4]")
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c

index edb86438e39ebcce4857b5f2c0da25682fcf64ca..3263fce845ef0721bbcbf907ac5da5396821ead5 100644 (file)
@@ -1503,6 +1503,7 @@ framebuffer_parameteri(struct gl_context *ctx, struct gl_framebuffer *fb,
       if (!ctx->Extensions.MESA_framebuffer_flip_y)
          goto invalid_pname_enum;
       cannot_be_winsys_fbo = true;
+      break;
    default:
       goto invalid_pname_enum;
    }