Commit 1e194d31 by Jamie Madill

Use correct input stride for disabled attribs.

We were using the input stride from the disabled vertex attribute. This was breaking the gl-disabled-vertex-attrib test in D3D9. BUG=angle:550 Change-Id: Ia5a37dc39105fe8ec92f4adbee3cfb2905e82676 Reviewed-on: https://chromium-review.googlesource.com/191932Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 6654bc93
...@@ -43,7 +43,7 @@ class VertexAttribute ...@@ -43,7 +43,7 @@ class VertexAttribute
GLsizei stride() const GLsizei stride() const
{ {
return mStride ? mStride : typeSize(); return (mArrayEnabled ? (mStride ? mStride : typeSize()) : 16);
} }
void setState(gl::Buffer *boundBuffer, GLint size, GLenum type, bool normalized, void setState(gl::Buffer *boundBuffer, GLint size, GLenum type, bool normalized,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment