mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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" <mesa-stable@lists.freedesktop.org> Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
ecfc418b68
commit
5c399ca8e4
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue