From b7a4792291c70d28f7da234befab8b84dc7a2372 Mon Sep 17 00:00:00 2001 From: Thom de Villa Date: Fri, 7 Aug 2015 21:24:45 +0200 Subject: [PATCH] fixed type usage in some situations int and GLsizei is not the same type which leads to conversion warnings --- src/nanovg_gl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nanovg_gl.h b/src/nanovg_gl.h index 5235795..55c07c5 100644 --- a/src/nanovg_gl.h +++ b/src/nanovg_gl.h @@ -363,8 +363,8 @@ static int glnvg__deleteTexture(GLNVGcontext* gl, int id) static void glnvg__dumpShaderError(GLuint shader, const char* name, const char* type) { - char str[512+1]; - int len = 0; + GLchar str[512+1]; + GLsizei len = 0; glGetShaderInfoLog(shader, 512, &len, str); if (len > 512) len = 512; str[len] = '\0'; @@ -373,8 +373,8 @@ static void glnvg__dumpShaderError(GLuint shader, const char* name, const char* static void glnvg__dumpProgramError(GLuint prog, const char* name) { - char str[512+1]; - int len = 0; + GLchar str[512+1]; + GLsizei len = 0; glGetProgramInfoLog(prog, 512, &len, str); if (len > 512) len = 512; str[len] = '\0';