mesa: remove redundant error check
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 27 Jun 2017 06:46:19 +0000 (16:46 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 28 Jun 2017 22:54:10 +0000 (08:54 +1000)
We do the same check in the shared code in the set_tex_parameterf()
call.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/texparam.c

index 857faf6f3adcffa6fb74ae27d0693ff7e062b8dd..1059a4cb5eea52d9a3300770f9ae8620a330aded 100644 (file)
@@ -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]);