Bug 576360 WebGLContext::VertexAttribPointer compares WebGLuint stride < 0

r=vlad

--HG--
extra : rebase_source : 640274fe5267a4caa6cf68fb1e0c9dec96fb6fbd
This commit is contained in:
timeless@mozdev.org 2010-07-02 17:21:13 +03:00
Родитель 03f17e3cc6
Коммит 01f9dc2d18
1 изменённых файлов: 0 добавлений и 3 удалений

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

@ -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());