summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/texstate.c2
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);