@@ -108,11 +108,11 @@ namespace {
108108 auto locColor = programState->getAttributeLocation (" a_color" );
109109 auto locColor2 = programState->getAttributeLocation (" a_color2" );
110110
111- layout-> setAttribute (" a_position" , locPosition, backend::VertexFormat::FLOAT3, offsetof (spine::V3F_C4B_C4B_T2F, position), false );
112- layout-> setAttribute (" a_color" , locColor, backend::VertexFormat::UBYTE4, offsetof (spine::V3F_C4B_C4B_T2F, color), true );
113- layout-> setAttribute (" a_color2" , locColor2, backend::VertexFormat::UBYTE4, offsetof (spine::V3F_C4B_C4B_T2F, color2), true );
114- layout-> setAttribute (" a_texCoords" , locTexcoord, backend::VertexFormat::FLOAT2, offsetof (spine::V3F_C4B_C4B_T2F, texCoords), false );
115- layout-> setLayout (sizeof (spine::V3F_C4B_C4B_T2F));
111+ programState-> setVertexAttrib (" a_position" , locPosition, backend::VertexFormat::FLOAT3, offsetof (spine::V3F_C4B_C4B_T2F, position), false );
112+ programState-> setVertexAttrib (" a_color" , locColor, backend::VertexFormat::UBYTE4, offsetof (spine::V3F_C4B_C4B_T2F, color), true );
113+ programState-> setVertexAttrib (" a_color2" , locColor2, backend::VertexFormat::UBYTE4, offsetof (spine::V3F_C4B_C4B_T2F, color2), true );
114+ programState-> setVertexAttrib (" a_texCoords" , locTexcoord, backend::VertexFormat::FLOAT2, offsetof (spine::V3F_C4B_C4B_T2F, texCoords), false );
115+ programState-> setVertexStride (sizeof (spine::V3F_C4B_C4B_T2F));
116116 }
117117
118118 static void initTwoColorProgramState () {
0 commit comments