From: Timothy Arceri Date: Tue, 27 Jun 2017 06:46:19 +0000 (+1000) Subject: mesa: remove redundant error check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d8937d23c618bf56f673bacbbfe0f1e4b632579;p=mesa.git mesa: remove redundant error check We do the same check in the shared code in the set_tex_parameterf() call. Reviewed-by: Samuel Pitoiset --- 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]);