mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa: fix texture border handling for cube arrays
Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
54690a5f3b
commit
55cf320ed8
1 changed files with 4 additions and 1 deletions
|
|
@ -1657,7 +1657,10 @@ error_check_subtexture_dimensions(struct gl_context *ctx,
|
|||
|
||||
/* check zoffset and depth */
|
||||
if (dims > 2) {
|
||||
GLint zBorder = (target == GL_TEXTURE_2D_ARRAY) ? 0 : destImage->Border;
|
||||
GLint zBorder = (target == GL_TEXTURE_2D_ARRAY ||
|
||||
target == GL_TEXTURE_CUBE_MAP_ARRAY) ?
|
||||
0 : destImage->Border;
|
||||
|
||||
if (zoffset < -zBorder) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "%s3D(zoffset)", function);
|
||||
return GL_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue