Skip to content

Commit 5c3a6d0

Browse files
Mee-guminggo
authored andcommitted
[BugFix] clear AttributeInfo vector since vertex layout info may change for different scenarios (#19330)
1 parent e991fd3 commit 5c3a6d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cocos/renderer/backend/opengl/ProgramGL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ void ProgramGL::compileProgram()
161161

162162
void ProgramGL::computeAttributeInfos(const RenderPipelineDescriptor& descriptor)
163163
{
164+
_attributeInfos.clear();
164165
const auto& vertexLayouts = descriptor.vertexLayouts;
165166
for (const auto& vertexLayout : vertexLayouts)
166167
{

0 commit comments

Comments
 (0)