From 1b86dbc144f168efe98cc9c02dc93d4176b8aac0 Mon Sep 17 00:00:00 2001 From: Miklós Máté Date: Sun, 15 Oct 2017 19:46:05 +0200 Subject: mesa: remove redundant NULL check in update_single_program_texture_state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit update_single_program_texture() never returns NULL. Signed-off-by: Miklós Máté Signed-off-by: Marek Olšák Reviewed-by: Timothy Arceri --- src/mesa/main/texstate.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index edd22537319..776806d6326 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -686,8 +686,6 @@ update_single_program_texture_state(struct gl_context *ctx, struct gl_texture_object *texObj; texObj = update_single_program_texture(ctx, prog, unit); - if (!texObj) - return; _mesa_reference_texobj(&ctx->Texture.Unit[unit]._Current, texObj); BITSET_SET(enabled_texture_units, unit); -- cgit v1.2.3