[BugFix] set layout (#19558)

This commit is contained in:
coulsonwang 2019-03-28 09:22:28 +08:00 committed by minggo
parent d92ae4b478
commit 15b8014c0b
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ void TMXLayer::updatePrimitives()
{
vertexLayout.setAtrribute("a_color", iterAttribute->second.location, backend::VertexFormat::UBYTE4, offsetof(V3F_C4B_T2F, colors), true);
}
vertexLayout.setLayout(sizeof(V3F_C4B_T2F), backend::VertexStepMode::VERTEX);
_mvpMatrixLocaiton = pipelineDescriptor.programState->getUniformLocation("u_MVPMatrix");
_textureLocation = pipelineDescriptor.programState->getUniformLocation("u_texture");
pipelineDescriptor.programState->setTexture(_textureLocation, 0, _texture->getBackendTexture());