Commit 20ba154c by Shannon Woods

Initialize TranslatedAttributes

BUG=398337 Uninitialized TranslatedAttributes were causing false positives in checks for nonzero attrib divisor. Change-Id: I44655d3fbe4f5478ca3757e05db38799d014e4c7 Reviewed-on: https://chromium-review.googlesource.com/211931Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org> Tested-by: 's avatarShannon Woods <shannonwoods@chromium.org>
parent 09cf736b
...@@ -30,6 +30,9 @@ class Renderer; ...@@ -30,6 +30,9 @@ class Renderer;
struct TranslatedAttribute struct TranslatedAttribute
{ {
TranslatedAttribute() : active(false), attribute(NULL), currentValueType(GL_NONE),
offset(0), stride(0), vertexBuffer(NULL), storage(NULL),
serial(0), divisor(0) {};
bool active; bool active;
const gl::VertexAttribute *attribute; const gl::VertexAttribute *attribute;
......
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