mirror of
https://github.com/memononen/nanovg
synced 2026-09-26 16:19:07 +03:00
Fixed issue #6, font atlas size was not passed to create texture
This commit is contained in:
parent
07b9a24367
commit
4431218724
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue