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:
@@ -962,10 +962,6 @@ _mesa_texture_parameteriv(struct gl_context *ctx,
|
|||||||
switch (pname) {
|
switch (pname) {
|
||||||
case GL_TEXTURE_BORDER_COLOR:
|
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 */
|
/* convert int params to float */
|
||||||
GLfloat fparams[4];
|
GLfloat fparams[4];
|
||||||
fparams[0] = INT_TO_FLOAT(params[0]);
|
fparams[0] = INT_TO_FLOAT(params[0]);
|
||||||
|
Reference in New Issue
Block a user