projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43a6e84
)
mesa: remove redundant NULL check in update_single_program_texture_state
author
Miklós Máté
<mtmkls@gmail.com>
Sun, 15 Oct 2017 17:46:05 +0000
(19:46 +0200)
committer
Marek 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.c
b/src/mesa/main/texstate.c
index
edd2253
..
776806d
100644
(file)
--- 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);