aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-06-27 16:46:19 +1000
committerTimothy Arceri <[email protected]>2017-06-29 08:54:10 +1000
commit7d8937d23c618bf56f673bacbbfe0f1e4b632579 (patch)
tree2968667eecf5461ac8993cab6ae2ebde25bb9b16
parent2e3f40272e7d8905969e7dd319a463097787fb57 (diff)
mesa: remove redundant error check
We do the same check in the shared code in the set_tex_parameterf() call. Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r--src/mesa/main/texparam.c4
1 files changed, 0 insertions, 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]);