X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fviewport.c;fp=src%2Fmesa%2Fmain%2Fviewport.c;h=398cc636856174971915d13d39d1315cfd0d5da8;hb=c6694793e1148f920a94eb54db11cead1662c2da;hp=fc384909e6363f24f59f3a772e57668f53bda4bc;hpb=5317211fa029ee8d0e1c802ef8c01f64c470e3d5;p=mesa.git diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index fc384909e63..398cc636856 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -51,9 +51,8 @@ clamp_viewport(struct gl_context *ctx, GLfloat *x, GLfloat *y, * determined by calling GetFloatv with the symbolic constant * VIEWPORT_BOUNDS_RANGE (see section 6.1)." */ - if (ctx->Extensions.ARB_viewport_array || - (ctx->Extensions.OES_viewport_array && - _mesa_is_gles31(ctx))) { + if (_mesa_has_ARB_viewport_array(ctx) || + _mesa_has_OES_viewport_array(ctx)) { *x = CLAMP(*x, ctx->Const.ViewportBounds.Min, ctx->Const.ViewportBounds.Max); *y = CLAMP(*y,