mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Merge pull request #186 from SmilyOrg/patch-1
Fix for convexFill crash when path fillCount is 0
This commit is contained in:
commit
2e24c7cc3e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue