mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990851 - Fix TexSubImage with cubemap face failure. r=jgilbert
This commit is contained in:
parent
5bbbd34e78
commit
c334f64c9c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user