diff options
author | Michal Srb <msrb@suse.com> | 2017-03-28 23:39:28 +0300 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-04-01 09:03:23 +0200 |
commit | 52f9ccefcb75a9d42307890d7714b1cd92e864cb (patch) | |
tree | c87a5480a345ccf6af0f654a75ed18ca4cf359ab /src/mesa/state_tracker/st_gen_mipmap.c | |
parent | d6fccb4c096dc06e5a4576afaf4e0d47f371999e (diff) |
st: Add cubeMapFace parameter to st_finalize_texture.
st_finalize_texture always accesses image at face 0, but it may not be
set if we are working with cubemap that had other face set.
This fixes crash in piglit
same-attachment-glFramebufferTexture2D-GL_DEPTH_STENCIL_ATTACHMENT.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/mesa/state_tracker/st_gen_mipmap.c')
-rw-r--r-- | src/mesa/state_tracker/st_gen_mipmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c index 10af11e17b4..16b914a8845 100644 --- a/src/mesa/state_tracker/st_gen_mipmap.c +++ b/src/mesa/state_tracker/st_gen_mipmap.c @@ -125,7 +125,7 @@ st_generate_mipmap(struct gl_context *ctx, GLenum target, * * After this, we'll have all mipmap levels in one resource. */ - st_finalize_texture(ctx, st->pipe, texObj); + st_finalize_texture(ctx, st->pipe, texObj, 0); } pt = stObj->pt; |