mesa: remove redundant error check

We do the same check in the shared code in the set_tex_parameterf()
call.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
Timothy Arceri
2017-06-27 16:46:19 +10:00
parent 2e3f40272e
commit 7d8937d23c

View 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]);