diff options
author | Miklós Máté <[email protected]> | 2017-10-15 19:46:05 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-17 04:16:17 +0200 |
commit | 1b86dbc144f168efe98cc9c02dc93d4176b8aac0 (patch) | |
tree | 76411420d314872dfc68ed74d83f32c36c5d7dd0 /src/mesa/main | |
parent | 43a6e84927e3b1290f6f211f5dfb184dfe5a719e (diff) |
mesa: remove redundant NULL check in update_single_program_texture_state
update_single_program_texture() never returns NULL.
Signed-off-by: Miklós Máté <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texstate.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |