st/mesa: Set the pipe context of the texture object.

The field was added in b8030c6561.  This
fixes a NULL dereference in xdemos/texture_from_pixmap.
This commit is contained in:
Chia-I Wu 2010-03-18 09:24:10 +08:00
parent bd1ce87472
commit a0d615fd97

View file

@ -553,6 +553,7 @@ st_context_teximage(struct st_context_iface *stctxi, enum st_texture_type target
_mesa_clear_texture_image(ctx, texImage); _mesa_clear_texture_image(ctx, texImage);
} }
stObj->pipe = st->pipe;
pipe_texture_reference(&stImage->pt, tex); pipe_texture_reference(&stImage->pt, tex);
_mesa_dirty_texobj(ctx, texObj, GL_TRUE); _mesa_dirty_texobj(ctx, texObj, GL_TRUE);