зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1186688 - Remove cached state check for DrawBuffer maximums, since it's invalid with min-cap mode. - r=jrmuizel
This commit is contained in:
Родитель
c73656947b
Коммит
084156ef40
|
@ -739,20 +739,6 @@ WebGLContext::AssertCachedState()
|
|||
|
||||
////////////////
|
||||
|
||||
AssertUintParamCorrect(gl, LOCAL_GL_MAX_COLOR_ATTACHMENTS, mGLMaxColorAttachments);
|
||||
AssertUintParamCorrect(gl, LOCAL_GL_MAX_DRAW_BUFFERS, mGLMaxDrawBuffers);
|
||||
|
||||
if (IsWebGL2() ||
|
||||
IsExtensionEnabled(WebGLExtensionID::WEBGL_draw_buffers))
|
||||
{
|
||||
MOZ_ASSERT(mImplMaxColorAttachments == std::min(mGLMaxColorAttachments,
|
||||
mGLMaxDrawBuffers));
|
||||
MOZ_ASSERT(mImplMaxDrawBuffers == mGLMaxDrawBuffers);
|
||||
} else {
|
||||
MOZ_ASSERT(mImplMaxColorAttachments == 1);
|
||||
MOZ_ASSERT(mImplMaxDrawBuffers == 1);
|
||||
}
|
||||
|
||||
// Draw state
|
||||
MOZ_ASSERT(gl->fIsEnabled(LOCAL_GL_DEPTH_TEST) == mDepthTestEnabled);
|
||||
MOZ_ASSERT(gl->fIsEnabled(LOCAL_GL_DITHER) == mDitherEnabled);
|
||||
|
|
Загрузка…
Ссылка в новой задаче