Corrected test that blocked ES3 compressions formats with 2D textures.

GL_TEXTURE_3D is not valid with these formats, but 2D, 2D arrays, and Cubemaps are fine.

BUG=429053

Review URL: https://codereview.chromium.org/1133853002

Cr-Commit-Position: refs/heads/master@{#329017}
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 97429d8..a22c2f9 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -9014,7 +9014,7 @@
             "width, height, or depth invalid");
         return false;
       }
-      if (target != GL_TEXTURE_2D_ARRAY) {
+      if (target == GL_TEXTURE_3D) {
         LOCAL_SET_GL_ERROR(
             GL_INVALID_OPERATION, function_name,
             "target invalid for format");
@@ -9116,7 +9116,7 @@
       {
         const int kBlockSize = 4;
         GLsizei tex_width, tex_height;
-        if (target != GL_TEXTURE_2D_ARRAY ||
+        if (target == GL_TEXTURE_3D ||
             !texture->GetLevelSize(target, level,
                                    &tex_width, &tex_height, nullptr) ||
             (xoffset % kBlockSize) || (yoffset % kBlockSize) ||