From 7d8937d23c618bf56f673bacbbfe0f1e4b632579 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 27 Jun 2017 16:46:19 +1000 Subject: [PATCH] mesa: remove redundant error check We do the same check in the shared code in the set_tex_parameterf() call. Reviewed-by: Samuel Pitoiset --- src/mesa/main/texparam.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 857faf6f3ad..1059a4cb5ee 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -962,10 +962,6 @@ _mesa_texture_parameteriv(struct gl_context *ctx, switch (pname) { case GL_TEXTURE_BORDER_COLOR: { - if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target)) { - _mesa_error(ctx, GL_INVALID_ENUM, "glTextureParameteriv(texture)"); - return; - } /* convert int params to float */ GLfloat fparams[4]; fparams[0] = INT_TO_FLOAT(params[0]); -- 2.30.2