Browse Source

Added float cast to viewport size

Added float cast to remove compiler warnings.
shared-context
Kyle Gretchev 11 years ago
parent
commit
4aefd89450
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/nanovg_gl3.h

+ 2
- 2
src/nanovg_gl3.h View File

@@ -620,8 +620,8 @@ static int glnvg__setupPaint(struct GLNVGcontext* gl, struct NVGpaint* paint, st
static void glnvg__renderViewport(void* uptr, int width, int height)
{
struct GLNVGcontext* gl = (struct GLNVGcontext*)uptr;
gl->viewWidth = width;
gl->viewHeight = height;
gl->viewWidth = (float)width;
gl->viewHeight = (float)height;
}

static void glnvg__renderFlush(void* uptr)


Loading…
Cancel
Save