Bug 990851 - Fix TexSubImage with cubemap face failure. r=jgilbert

This commit is contained in:
Dan Glastonbury 2014-04-22 14:09:33 +10:00
parent 5bbbd34e78
commit c334f64c9c

View File

@ -944,8 +944,9 @@ WebGLContext::ValidateTexImageSize(GLenum target, GLint level,
const GLuint maxTexImageSize = MaxTextureSizeForTarget(target) >> level;
const bool isCubemapTarget = IsTexImageCubemapTarget(target);
const bool isSub = IsSubFunc(func);
if (isCubemapTarget && width != height) {
if (!isSub && isCubemapTarget && (width != height)) {
/* GL ES Version 2.0.25 - 3.7.1 Texture Image Specification
* "When the target parameter to TexImage2D is one of the
* six cube map two-dimensional image targets, the error