Bug 698169 - Make WebGL texSubImage2D respect alpha-premultiplied DOM sources - r=bjacob
authorJeff Gilbert <jgilbert@mozilla.com>
Fri, 16 Dec 2011 14:24:46 -0800
changeset 84467 43aeb296b99e47d73b7c17571eebb5b640cb9c8f
parent 84466 fb3fd223b5d8cb82c507cd86c7b5e298b055f7f3
child 84468 84f4cb3c8b9e9af507badf5343de4a84d8221343
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs698169
milestone11.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 698169 - Make WebGL texSubImage2D respect alpha-premultiplied DOM sources - r=bjacob
content/canvas/src/WebGLContextGL.cpp
--- a/content/canvas/src/WebGLContextGL.cpp
+++ b/content/canvas/src/WebGLContextGL.cpp
@@ -5134,17 +5134,17 @@ WebGLContext::TexSubImage2D_dom(WebGLenu
     PRUint32 byteLength = isurf->Stride() * isurf->Height();
 
     return TexSubImage2D_base(target, level,
                               xoffset, yoffset,
                               isurf->Width(), isurf->Height(), isurf->Stride(),
                               format, type,
                               isurf->Data(), byteLength,
                               -1,
-                              srcFormat, true);
+                              srcFormat, mPixelStorePremultiplyAlpha);
 }
 
 bool
 WebGLContext::LoseContext()
 {
     if (mContextLost) {
         return false;
     }