mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 23:30:22 +01:00
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:
parent
2e3f40272e
commit
7d8937d23c
1 changed files with 0 additions and 4 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue