mirror of https://github.com/axmolengine/axmol.git
[BugFix] set layout (#19558)
This commit is contained in:
parent
d92ae4b478
commit
15b8014c0b
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue