forked from mirrors/gecko-dev
Bug 1924184 - Fix incorrect rendering with FakeVertexAttrib0 and VertexAttribDivisor. r=gfx-reviewers,lsalzman, a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D229097
This commit is contained in:
parent
a08af0549f
commit
acb60184c6
1 changed files with 6 additions and 0 deletions
|
|
@ -1190,6 +1190,12 @@ bool WebGLContext::DoFakeVertexAttrib0(
|
|||
}
|
||||
|
||||
gl->fEnableVertexAttribArray(0);
|
||||
{
|
||||
const auto& attrib0 = mBoundVertexArray->AttribBinding(0);
|
||||
if (attrib0.layout.divisor) {
|
||||
gl->fVertexAttribDivisor(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (!mFakeVertexAttrib0BufferObject) {
|
||||
gl->fGenBuffers(1, &mFakeVertexAttrib0BufferObject);
|
||||
|
|
|
|||
Loading…
Reference in a new issue