Take depth into account when checking for OOB in TexImage3D
BUG=angleproject:2017
Change-Id: Id75a8c0ddf4eda4b569509e2014c20db6f5c46ff
Reviewed-on: https://chromium-review.googlesource.com/490848
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/validationES3.cpp b/src/libANGLE/validationES3.cpp
index f37e60e..a9b8653 100644
--- a/src/libANGLE/validationES3.cpp
+++ b/src/libANGLE/validationES3.cpp
@@ -297,8 +297,8 @@
}
}
- if (!ValidImageDataSize(context, target, width, height, 1, actualInternalFormat, type, pixels,
- imageSize))
+ if (!ValidImageDataSize(context, target, width, height, depth, actualInternalFormat, type,
+ pixels, imageSize))
{
return false;
}