Bug 912196 - (ANGLE) Fix CopyTexImage. - r=kamidphish
authorJeff Gilbert <jgilbert@mozilla.com>
Wed, 08 Oct 2014 16:35:05 -0700
changeset 212599 42836d13bba5b656341c0955a8bbaca304b554e2
parent 212598 51926ef0c382e859d8c9fe047c701d345c493f88
child 212600 7ccefd960453bb30d5612bcb541c0387747ddb30
push id27721
push usercbook@mozilla.com
push dateTue, 28 Oct 2014 14:55:05 +0000
treeherdermozilla-central@c0ddb1b098ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskamidphish
bugs912196
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 912196 - (ANGLE) Fix CopyTexImage. - r=kamidphish
gfx/angle/src/libGLESv2/validationES2.cpp
--- a/gfx/angle/src/libGLESv2/validationES2.cpp
+++ b/gfx/angle/src/libGLESv2/validationES2.cpp
@@ -586,17 +586,18 @@ bool ValidateES2CopyTexImageParameters(C
                 context->recordError(Error(GL_INVALID_OPERATION));
                 return false;
             }
             break;
           case GL_LUMINANCE_ALPHA:
           case GL_RGBA:
             if (colorbufferFormat != GL_RGBA4 &&
                 colorbufferFormat != GL_RGB5_A1 &&
-                colorbufferFormat != GL_RGBA8_OES)
+                colorbufferFormat != GL_RGBA8_OES &&
+                colorbufferFormat != GL_BGRA8_EXT)
             {
                 context->recordError(Error(GL_INVALID_OPERATION));
                 return false;
             }
             break;
           case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
           case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
           case GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE: