diff options
author | Marek Olšák <[email protected]> | 2014-03-11 14:52:39 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-03-21 00:50:53 +0100 |
commit | db722bdcab15717d80797323330b60fe3f61df5d (patch) | |
tree | 5c06e372affed1f017066ae14fa0f62ce533dfbd /src/mesa/state_tracker | |
parent | 91df26842fb36e6f1ec33db5c028ae34c9993f1d (diff) |
st/mesa: fix generating mipmaps for cube arrays
Cc: [email protected]
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_gen_mipmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c index 04333f75e50..b615575b5cc 100644 --- a/src/mesa/state_tracker/st_gen_mipmap.c +++ b/src/mesa/state_tracker/st_gen_mipmap.c @@ -221,7 +221,8 @@ st_generate_mipmap(struct gl_context *ctx, GLenum target, else { dstHeight = u_minify(pt->height0, dstLevel); } - if (texObj->Target == GL_TEXTURE_2D_ARRAY) { + if (texObj->Target == GL_TEXTURE_2D_ARRAY || + texObj->Target == GL_TEXTURE_CUBE_MAP_ARRAY) { dstDepth = pt->array_size; } else { |