Bug 1325477 - Initial RB config is 0x0 RGBA4. - r=daoshengmu a=lizzard
authorJeff Gilbert <jgilbert@mozilla.com>
Thu, 22 Dec 2016 14:06:06 -0800
changeset 353253 5dbb997dac26bcf3a66345753f519cfcfe9809f4
parent 353252 23cee75294529942c6860f65cc539a1db5d17b4a
child 353254 effc83303f9a00c6297178fb840ce1bb302c6303
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaoshengmu, lizzard
bugs1325477
milestone52.0a2
Bug 1325477 - Initial RB config is 0x0 RGBA4. - r=daoshengmu a=lizzard MozReview-Commit-ID: 69MYWBgDpPS
dom/canvas/WebGLRenderbuffer.cpp
--- a/dom/canvas/WebGLRenderbuffer.cpp
+++ b/dom/canvas/WebGLRenderbuffer.cpp
@@ -273,17 +273,17 @@ WebGLRenderbuffer::GetRenderbufferParame
             gl->fBindRenderbuffer(LOCAL_GL_RENDERBUFFER, mPrimaryRB);
             GLint i = 0;
             gl->fGetRenderbufferParameteriv(target.get(), pname.get(), &i);
             return i;
         }
 
     case LOCAL_GL_RENDERBUFFER_INTERNAL_FORMAT:
         {
-            GLenum ret = 0;
+            GLenum ret = LOCAL_GL_RGBA4;
             if (mFormat) {
                 ret = mFormat->format->sizedFormat;
 
                 if (!mContext->IsWebGL2() && ret == LOCAL_GL_DEPTH24_STENCIL8) {
                     ret = LOCAL_GL_DEPTH_STENCIL;
                 }
             }
             return ret;