yoffset is also applicable to 1d array textures.
Signed-off-by: Anuj Phogat <[email protected]>
---
I don't know if it fixes any test, but it looked incorrect to me.
src/mesa/main/texgetimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 06bc8f1..dc21551 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -1046,7 +1046,7 @@ dimensions_error_check(struct gl_context *ctx,
"%s(xoffset = %d)", caller, xoffset);
return true;
}
- if (target != GL_TEXTURE_1D && target != GL_TEXTURE_1D_ARRAY) {
+ if (target != GL_TEXTURE_1D) {
if (yoffset % bh != 0) {
_mesa_error(ctx, GL_INVALID_VALUE,
"%s(yoffset = %d)", caller, yoffset);
--
2.5.0
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev