Allow 1xn and 2xn compressed textures.
This is needed to allow texture streaming of all miplevels. This affects only pepper, as WebGL does its own validation.
BUG=136929
TEST=
Review URL: https://chromiumcodereview.appspot.com/10735066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146711 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index ae0ab29e..b1266d8 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -6973,8 +6973,8 @@
const int kS3TCDXT3AndDXT5BlockSize = 16;
bool IsValidDXTSize(GLint level, GLsizei size) {
- return (level && size == 1) ||
- (level && size == 2) || !(size % kS3TCBlockWidth);
+ return (size == 1) ||
+ (size == 2) || !(size % kS3TCBlockWidth);
}
} // anonymous namespace.