Browse Source

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

shared-context
Mikko Mononen 11 years ago
parent
commit
4431218724
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nanovg.c

+ 1
- 1
src/nanovg.c View File

@@ -213,7 +213,7 @@ struct NVGcontext* nvgCreateInternal(struct NVGparams* params)
if (ctx->fs == NULL) goto error; if (ctx->fs == NULL) goto error;


// Create font texture // 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; if (ctx->fontImage == 0) goto error;


return ctx; return ctx;


Loading…
Cancel
Save