Bug 1371940 - Reset mStencilTestEnabled when initializing openGL context r?jgilbert draft
authorChih-Yi Leu <cleu@mozilla.com>
Wed, 14 Jun 2017 16:10:25 +0800
changeset 593886 515ea8a5001c189c36464d2c63c1237b3a714024
parent 593717 b266a8d8fd595b84a7d6218d7b8c6b7af0b5027c
child 633252 488135a1110cae3d5560293b4b68e35bd299f8ac
push id63850
push userbmo:cleu@mozilla.com
push dateWed, 14 Jun 2017 08:14:34 +0000
reviewersjgilbert
bugs1371940
milestone56.0a1
Bug 1371940 - Reset mStencilTestEnabled when initializing openGL context r?jgilbert MozReview-Commit-ID: 3m78xXoObYY
dom/canvas/WebGLContextValidate.cpp
--- a/dom/canvas/WebGLContextValidate.cpp
+++ b/dom/canvas/WebGLContextValidate.cpp
@@ -449,16 +449,17 @@ WebGLContext::InitAndValidateGL(FailureR
     AssertUintParamCorrect(gl, LOCAL_GL_STENCIL_BACK_VALUE_MASK, mStencilValueMaskBack);
     AssertUintParamCorrect(gl, LOCAL_GL_STENCIL_WRITEMASK,       mStencilWriteMaskFront);
     AssertUintParamCorrect(gl, LOCAL_GL_STENCIL_BACK_WRITEMASK,  mStencilWriteMaskBack);
 
     mDitherEnabled = true;
     mRasterizerDiscardEnabled = false;
     mScissorTestEnabled = false;
     mDepthTestEnabled = 0;
+    mStencilTestEnabled = 0;
     mGenerateMipmapHint = LOCAL_GL_DONT_CARE;
 
     // Bindings, etc.
     mActiveTexture = 0;
     mDefaultFB_DrawBuffer0 = LOCAL_GL_BACK;
 
     mEmitContextLostErrorOnce = true;
     mWebGLError = LOCAL_GL_NO_ERROR;