mesa: remove redundant NULL check in update_single_program_texture_state
authorMiklós Máté <mtmkls@gmail.com>
Sun, 15 Oct 2017 17:46:05 +0000 (19:46 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 17 Oct 2017 02:16:17 +0000 (04:16 +0200)
update_single_program_texture() never returns NULL.

Signed-off-by: Miklós Máté <mtmkls@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/texstate.c

index edd22537319b1673ffc824e8a44b244ea0b25c35..776806d632601540443993621eae15e69f7805fc 100644 (file)
@@ -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);