Fixed issue #6, font atlas size was not passed to create texture

This commit is contained in:
Mikko Mononen 2014-02-07 23:04:43 +02:00
parent 07b9a24367
commit 4431218724

View file

@ -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;