|
|
@@ -1481,7 +1481,7 @@ error: |
|
|
|
} |
|
|
|
|
|
|
|
static void glnvg__renderTriangles(void* uptr, NVGpaint* paint, NVGcompositeOperationState compositeOperation, NVGscissor* scissor, |
|
|
|
const NVGvertex* verts, int nverts) |
|
|
|
const NVGvertex* verts, int nverts, float fringe) |
|
|
|
{ |
|
|
|
GLNVGcontext* gl = (GLNVGcontext*)uptr; |
|
|
|
GLNVGcall* call = glnvg__allocCall(gl); |
|
|
@@ -1504,7 +1504,7 @@ static void glnvg__renderTriangles(void* uptr, NVGpaint* paint, NVGcompositeOper |
|
|
|
call->uniformOffset = glnvg__allocFragUniforms(gl, 1); |
|
|
|
if (call->uniformOffset == -1) goto error; |
|
|
|
frag = nvg__fragUniformPtr(gl, call->uniformOffset); |
|
|
|
glnvg__convertPaint(gl, frag, paint, scissor, 1.0f, 1.0f, -1.0f); |
|
|
|
glnvg__convertPaint(gl, frag, paint, scissor, 1.0f, fringe, -1.0f); |
|
|
|
frag->type = NSVG_SHADER_IMG; |
|
|
|
|
|
|
|
return; |
|
|
|