зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1150310 - Only check stencil LSB 8bit value. r=jgilbert
--HG-- extra : rebase_source : 78dbe41efd129eea38d80415e14105a38bbf8f8d
This commit is contained in:
Родитель
3771691304
Коммит
fe1981cb51
|
@ -1198,12 +1198,11 @@ WebGLContext::AssertCachedState()
|
|||
// supported by the GL implementation.
|
||||
const int maxStencilBits = 8;
|
||||
const GLuint maxStencilBitsMask = (1 << maxStencilBits) - 1;
|
||||
|
||||
AssertMaskedUintParamCorrect(gl, LOCAL_GL_STENCIL_VALUE_MASK, maxStencilBitsMask, mStencilValueMaskFront);
|
||||
AssertMaskedUintParamCorrect(gl, LOCAL_GL_STENCIL_BACK_VALUE_MASK, maxStencilBitsMask, mStencilValueMaskBack);
|
||||
|
||||
AssertUintParamCorrect(gl, LOCAL_GL_STENCIL_WRITEMASK, mStencilWriteMaskFront);
|
||||
AssertUintParamCorrect(gl, LOCAL_GL_STENCIL_BACK_WRITEMASK, mStencilWriteMaskBack);
|
||||
AssertMaskedUintParamCorrect(gl, LOCAL_GL_STENCIL_WRITEMASK, maxStencilBitsMask, mStencilWriteMaskFront);
|
||||
AssertMaskedUintParamCorrect(gl, LOCAL_GL_STENCIL_BACK_WRITEMASK, maxStencilBitsMask, mStencilWriteMaskBack);
|
||||
|
||||
// Viewport
|
||||
GLint int4[4] = {0, 0, 0, 0};
|
||||
|
|
Загрузка…
Ссылка в новой задаче