Fixed alignment.

This commit is contained in:
Branimir Karadžić 2014-08-25 19:32:20 -07:00
parent 3205a164a2
commit ae9da4b2a6

View file

@ -271,7 +271,7 @@ namespace
.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Float)
.end();
int align = 1;
int align = 16;
gl->fragSize = sizeof(struct GLNVGfragUniforms) + align - sizeof(struct GLNVGfragUniforms) % align;
return 1;