Bug 1156582 - Initialize WebGLShader bools in constructor. r=jgilbert
authorLee Salzman <lsalzman@mozilla.com>
Fri, 29 May 2015 19:54:04 -0400
changeset 247029 21b703601d17ab2a796bb3d676e9fee0cab268b8
parent 247028 d216678de399a1aa77e01b084187bb91afb7a1f8
child 247030 42417785fae03fd72cc7501aabcb4f356dd590fe
push id28848
push userryanvm@gmail.com
push dateWed, 03 Jun 2015 20:00:13 +0000
treeherdermozilla-central@0920f2325a6d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1156582
milestone41.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 1156582 - Initialize WebGLShader bools in constructor. r=jgilbert
dom/canvas/WebGLShader.cpp
--- a/dom/canvas/WebGLShader.cpp
+++ b/dom/canvas/WebGLShader.cpp
@@ -135,16 +135,18 @@ CreateShader(gl::GLContext* gl, GLenum t
     gl->MakeCurrent();
     return gl->fCreateShader(type);
 }
 
 WebGLShader::WebGLShader(WebGLContext* webgl, GLenum type)
     : WebGLContextBoundObject(webgl)
     , mGLName(CreateShader(webgl->GL(), type))
     , mType(type)
+    , mTranslationSuccessful(false)
+    , mCompilationSuccessful(false)
 {
     mContext->mShaders.insertBack(this);
 }
 
 WebGLShader::~WebGLShader()
 {
     DeleteOnce();
 }