Fix 'getDepth' in Texture::isLevelComplete.
Was mistakenly inserted as getWidth in 691e58cd84360f.
BUG=angle:681
Change-Id: Ibccf056dcb47c8711422efb8bd40fb6f64ff57d9
Reviewed-on: https://chromium-review.googlesource.com/244090
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/libANGLE/Texture.cpp b/src/libANGLE/Texture.cpp
index 90b8c41..63af120 100644
--- a/src/libANGLE/Texture.cpp
+++ b/src/libANGLE/Texture.cpp
@@ -475,7 +475,7 @@
size_t width = getWidth(target, samplerState.baseLevel);
size_t height = getHeight(target, samplerState.baseLevel);
- size_t depth = getHeight(target, samplerState.baseLevel);
+ size_t depth = getDepth(target, samplerState.baseLevel);
if (width == 0 || height == 0 || depth == 0)
{
return false;