Merge pull request #186 from SmilyOrg/patch-1

Fix for convexFill crash when path fillCount is 0
This commit is contained in:
Branimir Karadžić 2014-11-20 16:47:53 -08:00
commit 2e24c7cc3e

View file

@ -620,6 +620,7 @@ namespace
for (i = 0; i < npaths; i++)
{
if (paths[i].fillCount == 0) continue;
bgfx::setProgram(gl->prog);
bgfx::setState(gl->state);
bgfx::setVertexBuffer(&gl->tvb);