Bug 1156582 - Initialize WebGLShader bools in constructor. r=jgilbert
authorLee Salzman <lsalzman@mozilla.com>
Fri, 29 May 2015 19:54:04 -0400
changeset 269687 21b703601d17ab2a796bb3d676e9fee0cab268b8
parent 269686 d216678de399a1aa77e01b084187bb91afb7a1f8
child 269688 42417785fae03fd72cc7501aabcb4f356dd590fe
push id2540
push userwcosta@mozilla.com
push dateWed, 03 Jun 2015 20:55:41 +0000
reviewersjgilbert
bugs1156582
milestone41.0a1
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();
 }