glGenerateMipmap should accept GL_TEXTURE_2D_ARRAY
This cl does not impact real devices.
BUG: 77977729
Test: atest CtsNativeHardwareTestCases
Change-Id: Id812865294471e16f890a01814e99e416a8c76c6
diff --git a/system/GLESv2_enc/GL2Encoder.cpp b/system/GLESv2_enc/GL2Encoder.cpp
index 614622c..dd4f658 100755
--- a/system/GLESv2_enc/GL2Encoder.cpp
+++ b/system/GLESv2_enc/GL2Encoder.cpp
@@ -4217,7 +4217,8 @@
SET_ERROR_IF(target != GL_TEXTURE_2D &&
target != GL_TEXTURE_3D &&
- target != GL_TEXTURE_CUBE_MAP,
+ target != GL_TEXTURE_CUBE_MAP &&
+ target != GL_TEXTURE_2D_ARRAY,
GL_INVALID_ENUM);
GLuint tex = state->getBoundTexture(target);