Bug 1371940 - Reset mStencilTestEnabled when initializing openGL context r=jgilbert
authorChih-Yi Leu <cleu@mozilla.com>
Wed, 14 Jun 2017 16:10:25 +0800
changeset 364088 bc85129e5c3ea2e54fa9d201638f90765ca4fb11
parent 364087 c8497caddebb58fa8db7816b578c629987b82c07
child 364089 3e86b214b2c565df89675f8569177133c253d52b
push id32032
push userarchaeopteryx@coole-files.de
push dateThu, 15 Jun 2017 18:04:52 +0000
treeherdermozilla-central@00f228ced57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1371940
milestone56.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 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;