Merge pull request #506 from olliwang/gl
Fixes the bug that gl may fail to draw fringes.
This commit is contained in:
commit
fe4ba5f3ba
@ -1049,12 +1049,12 @@ static void glnvg__convexFill(GLNVGcontext* gl, GLNVGcall* call)
|
||||
glnvg__setUniforms(gl, call->uniformOffset, call->image);
|
||||
glnvg__checkError(gl, "convex fill");
|
||||
|
||||
for (i = 0; i < npaths; i++)
|
||||
for (i = 0; i < npaths; i++) {
|
||||
glDrawArrays(GL_TRIANGLE_FAN, paths[i].fillOffset, paths[i].fillCount);
|
||||
if (gl->flags & NVG_ANTIALIAS) {
|
||||
// Draw fringes
|
||||
for (i = 0; i < npaths; i++)
|
||||
if (paths[i].strokeCount > 0) {
|
||||
glDrawArrays(GL_TRIANGLE_STRIP, paths[i].strokeOffset, paths[i].strokeCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user