mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
mesa/main: remove useless check in _mesa_IsSampler()
_mesa_lookup_samplerobj() returns NULL if sampler is 0. v2: use _mesa_lookup...(...) != NULL Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
5ae54c0cf7
commit
052c81faa1
1 changed files with 1 additions and 7 deletions
|
|
@ -270,17 +270,11 @@ _mesa_DeleteSamplers(GLsizei count, const GLuint *samplers)
|
|||
GLboolean GLAPIENTRY
|
||||
_mesa_IsSampler(GLuint sampler)
|
||||
{
|
||||
struct gl_sampler_object *sampObj;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
|
||||
|
||||
if (sampler == 0)
|
||||
return GL_FALSE;
|
||||
|
||||
sampObj = _mesa_lookup_samplerobj(ctx, sampler);
|
||||
|
||||
return sampObj != NULL;
|
||||
return _mesa_lookup_samplerobj(ctx, sampler) != NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue