From 44312187240dc604ce528b51c847923ab00a1fd3 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Fri, 7 Feb 2014 23:04:43 +0200 Subject: [PATCH] Fixed issue #6, font atlas size was not passed to create texture --- src/nanovg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanovg.c b/src/nanovg.c index bf26360..f4945fa 100644 --- a/src/nanovg.c +++ b/src/nanovg.c @@ -213,7 +213,7 @@ struct NVGcontext* nvgCreateInternal(struct NVGparams* params) if (ctx->fs == NULL) goto error; // Create font texture - ctx->fontImage = ctx->params.renderCreateTexture(ctx->params.userPtr, NVG_TEXTURE_ALPHA, 512, 512, NULL); + ctx->fontImage = ctx->params.renderCreateTexture(ctx->params.userPtr, NVG_TEXTURE_ALPHA, fontParams.width, fontParams.height, NULL); if (ctx->fontImage == 0) goto error; return ctx;