From 9d62d28bdf02cd0553821c6e12d21cc0795c5953 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Tue, 22 Apr 2014 08:24:07 +0300 Subject: [PATCH] Fix for issue #69 - make default uniform struct align 4 --- src/nanovg_gl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanovg_gl.h b/src/nanovg_gl.h index 26c227c..a0e3235 100644 --- a/src/nanovg_gl.h +++ b/src/nanovg_gl.h @@ -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