mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
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:
parent
bd1ce87472
commit
a0d615fd97
1 changed files with 1 additions and 0 deletions
|
|
@ -553,6 +553,7 @@ st_context_teximage(struct st_context_iface *stctxi, enum st_texture_type target
|
|||
_mesa_clear_texture_image(ctx, texImage);
|
||||
}
|
||||
|
||||
stObj->pipe = st->pipe;
|
||||
pipe_texture_reference(&stImage->pt, tex);
|
||||
|
||||
_mesa_dirty_texobj(ctx, texObj, GL_TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue