Backed out changeset 58d155b0b54a (bug 1624768) for mochitest failures at test_2_conformance2__renderbuffers__multisampled-depth-renderbuffer-initialization.html.

This commit is contained in:
Brindusan Cristian 2020-03-25 06:00:00 +02:00
Родитель 64e6f10659
Коммит 4d9cd18676
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -3181,14 +3181,6 @@ void ClientWebGLContext::RenderbufferStorageMultisample(GLenum target,
return;
}
if (internalFormat == LOCAL_GL_DEPTH_STENCIL && samples > 0) {
// While our backend supports it trivially, the spec forbids it.
EnqueueError(LOCAL_GL_INVALID_OPERATION,
"WebGL 1's DEPTH_STENCIL format may not be multisampled. Use "
"DEPTH24_STENCIL8 when `samples > 0`.");
return;
}
Run<RPROC(RenderbufferStorageMultisample)>(
rb->mId, static_cast<uint32_t>(samples), internalFormat,
static_cast<uint32_t>(width), static_cast<uint32_t>(height));