diff --git a/src/nanovg.c b/src/nanovg.c index e2402ee..70813f7 100644 --- a/src/nanovg.c +++ b/src/nanovg.c @@ -721,7 +721,8 @@ void nvgLineJoin(NVGcontext* ctx, int join) void nvgGlobalAlpha(NVGcontext* ctx, float alpha) { - nvgGlobalTint(ctx, nvgRGBAf(1, 1, 1, alpha)); + NVGstate* state = nvg__getState(ctx); + state->tint.a = alpha; } void nvgGlobalTint(NVGcontext* ctx, NVGcolor tint)