Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>

On 06/28/2017 08:13 AM, Timothy Arceri wrote:
We do the same check in the shared code in the set_tex_parameterf()
call.
---
  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 3c110de..6c908af 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -954,10 +954,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]);

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to