Commit 4923ce99 by Alexis Hetu Committed by Alexis Hétu

New default vertex attribute size

VertexAttribute objects should have a default size of 4. Fixes dEQP-GLES3.functional.state_query.shader.vertex_attrib_size Change-Id: I597d2095f7be087f35a4adfb01bb2a3ba5200701 Reviewed-on: https://swiftshader-review.googlesource.com/14928Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent f15fd5a1
...@@ -194,7 +194,7 @@ struct Color ...@@ -194,7 +194,7 @@ struct Color
class VertexAttribute class VertexAttribute
{ {
public: public:
VertexAttribute() : mType(GL_FLOAT), mSize(0), mNormalized(false), mStride(0), mDivisor(0), mPointer(nullptr), mArrayEnabled(false) VertexAttribute() : mType(GL_FLOAT), mSize(4), mNormalized(false), mStride(0), mDivisor(0), mPointer(nullptr), mArrayEnabled(false)
{ {
mCurrentValue[0].f = 0.0f; mCurrentValue[0].f = 0.0f;
mCurrentValue[1].f = 0.0f; mCurrentValue[1].f = 0.0f;
......
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