diff options
Diffstat (limited to 'tests/GrMeshTest.cpp')
-rw-r--r-- | tests/GrMeshTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/GrMeshTest.cpp b/tests/GrMeshTest.cpp index 223138b4ce..1ae3926699 100644 --- a/tests/GrMeshTest.cpp +++ b/tests/GrMeshTest.cpp @@ -285,14 +285,14 @@ public: , fVertex(nullptr) , fColor(nullptr) { if (instanced) { - fInstanceLocation = &this->addInstanceAttrib("location", kVec2f_GrVertexAttribType); + fInstanceLocation = &this->addInstanceAttrib("location", kHalf2_GrVertexAttribType); if (hasVertexBuffer) { - fVertex = &this->addVertexAttrib("vertex", kVec2f_GrVertexAttribType); + fVertex = &this->addVertexAttrib("vertex", kHalf2_GrVertexAttribType); } - fColor = &this->addInstanceAttrib("color", kVec4ub_GrVertexAttribType); + fColor = &this->addInstanceAttrib("color", kUByte4_norm_GrVertexAttribType); } else { - fVertex = &this->addVertexAttrib("vertex", kVec2f_GrVertexAttribType); - fColor = &this->addVertexAttrib("color", kVec4ub_GrVertexAttribType); + fVertex = &this->addVertexAttrib("vertex", kHalf2_GrVertexAttribType); + fColor = &this->addVertexAttrib("color", kUByte4_norm_GrVertexAttribType); } this->initClassID<GrMeshTestProcessor>(); } |