зеркало из https://github.com/mozilla/gecko-dev.git
Bug 576360 WebGLContext::VertexAttribPointer compares WebGLuint stride < 0
r=vlad --HG-- extra : rebase_source : 640274fe5267a4caa6cf68fb1e0c9dec96fb6fbd
This commit is contained in:
Родитель
03f17e3cc6
Коммит
01f9dc2d18
|
@ -2975,9 +2975,6 @@ WebGLContext::VertexAttribPointer(WebGLuint index, WebGLint size, WebGLenum type
|
|||
if (size < 1 || size > 4)
|
||||
return ErrorInvalidValue("VertexAttribPointer: invalid element size");
|
||||
|
||||
if (stride < 0)
|
||||
return ErrorInvalidValue("VertexAttribPointer: stride cannot be negative");
|
||||
|
||||
/* XXX make work with bufferSubData & heterogeneous types
|
||||
if (type != mBoundArrayBuffer->GLType())
|
||||
return ErrorInvalidOperation("VertexAttribPointer: type must match bound VBO type: %d != %d", type, mBoundArrayBuffer->GLType());
|
||||
|
|
Загрузка…
Ссылка в новой задаче