Skip to content

Commit 97cdc2c

Browse files
authored
Merge pull request #46 from DoubleCai/bug_fix/particle_crash
[*]Fix bug: Particle crash on linux
2 parents 55763ad + 7c8b9c7 commit 97cdc2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Node/Sprite.h

+2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ struct SpriteVertex {
2222
float u;
2323
float v;
2424
uint32_t abgr;
25+
uint8_t padding[4];
2526
struct Init {
2627
Init() {
2728
ms_layout.begin()
2829
.add(bgfx::Attrib::Position, 4, bgfx::AttribType::Float)
2930
.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Float)
3031
.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true)
32+
.skip(sizeof(padding))
3133
.end();
3234
}
3335
};

0 commit comments

Comments
 (0)