Browse Source

Fix for issue #69

- make default uniform struct align 4
shared-context
Mikko Mononen 11 years ago
parent
commit
9d62d28bdf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nanovg_gl.h

+ 1
- 1
src/nanovg_gl.h View File

@@ -367,7 +367,7 @@ static void glnvg__getUniforms(struct GLNVGshader* shader)
static int glnvg__renderCreate(void* uptr)
{
struct GLNVGcontext* gl = (struct GLNVGcontext*)uptr;
int align = 1;
int align = 4;

// TODO: mediump float may not be enough for GLES2 in iOS.
// see the following discussion: https://github.com/memononen/nanovg/issues/46


Loading…
Cancel
Save