gallium: replace an assertion with "if (!texobj) continue"

It's possible to call update_samplers() between the time a fragment shader
is bound and when a texture image is defined (such as glClear).  This
fixes the case where we don't have a complete texture object yet.
This commit is contained in:
Brian Paul
2008-07-02 19:11:49 -06:00
parent dad8a7c90d
commit 98b7174ad6
+2 -1
View File
@@ -136,7 +136,8 @@ update_samplers(struct st_context *st)
const struct gl_texture_object *texobj
= st->ctx->Texture.Unit[texUnit]._Current;
assert(texobj);
if (!texobj)
continue;
sampler->wrap_s = gl_wrap_to_sp(texobj->WrapS);
sampler->wrap_t = gl_wrap_to_sp(texobj->WrapT);