Backed out changeset 397a59f9c50d (bug 1348382) for getting r-'d a=backout
authorWes Kocher <wkocher@mozilla.com>
Tue, 21 Mar 2017 19:03:22 -0700
changeset 399207 38ddb566186ab4314327c5d407d7d5235690bff4
parent 399206 ea7a7aab486357138f59f584ee22f7ca55cad1d4
child 399208 40911fc4bf7eff4f84add35cceb3a67d69a6e75a
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1348382
milestone55.0a1
backs out397a59f9c50d19373d8bf5ce96a7102771133e18
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
Backed out changeset 397a59f9c50d (bug 1348382) for getting r-'d a=backout MozReview-Commit-ID: GIzqqaMfz5T
dom/canvas/WebGLFramebuffer.cpp
--- a/dom/canvas/WebGLFramebuffer.cpp
+++ b/dom/canvas/WebGLFramebuffer.cpp
@@ -1499,23 +1499,16 @@ WebGLFramebuffer::FramebufferTextureLaye
             return;
 
         if (!tex->HasEverBeenBound()) {
             mContext->ErrorInvalidOperation("%s: `texture` has never been bound.",
                                             funcName);
             return;
         }
 
-        if (!texImageTarget.IsValueLegal(tex->Target().get())) {
-            mContext->ErrorInvalidValue("%s: `texture` does not belong to"
-                                        " TexImageTarget",
-                                        funcName);
-            return;
-        }
-
         texImageTarget = tex->Target().get();
         switch (texImageTarget.get()) {
         case LOCAL_GL_TEXTURE_3D:
             if (uint32_t(layer) >= mContext->mImplMax3DTextureSize) {
                 mContext->ErrorInvalidValue("%s: `layer` must be < %s.", funcName,
                                             "MAX_3D_TEXTURE_SIZE");
                 return;
             }