diff options
author | Kenneth Graunke <[email protected]> | 2014-05-07 14:35:42 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-05-07 23:42:11 -0700 |
commit | 5c399ca8e4ccae509a5116b3b9f41634a7ca4322 (patch) | |
tree | 7298efd2cef74663f10d76d54113d1a680c70c9e | |
parent | ecfc418b68d3368df0f72116adad153c19d8c6d8 (diff) |
mesa: Fix MaxNumLayers for 1D array textures.
1D array targets store the number of slices in the Height field.
Cc: "10.2 10.1 10.0" <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
-rw-r--r-- | src/mesa/main/fbobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index ca16ae1ec7e..97538bc7b29 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1058,6 +1058,8 @@ _mesa_test_framebuffer_completeness(struct gl_context *ctx, if (att->Layered) { if (att_tex_target == GL_TEXTURE_CUBE_MAP) att_layer_count = 6; + else if (att_tex_target == GL_TEXTURE_1D_ARRAY) + att_layer_count = att->Renderbuffer->Height; else att_layer_count = att->Renderbuffer->Depth; } else { |