commit 909f779f19905be1b40a96beeffc319a2f8145ca parent 02621a2c45989c5ac8dd5480ea2ab3e6954e946c Author: Michael Savage <mikejsavage@gmail.com> Date: Thu Aug 31 23:02:55 +0300 Warning Diffstat:
renderer.cc | | | 2 | +- |
diff --git a/renderer.cc b/renderer.cc @@ -470,7 +470,7 @@ static GLuint new_gl_shader( GLenum type, array< const char * > srcs ) { StaticArray< const char *, 16 > full_srcs; full_srcs[ 0 ] = "#version 330\n"; full_srcs[ 1 ] = type == GL_VERTEX_SHADER ? "#define VERTEX_SHADER 1\n" : "#define FRAGMENT_SHADER 1\n"; - size_t n = 2; + GLsizei n = 2; for( size_t i = 0; i < srcs.n; i++ ) { if( srcs[ i ] != NULL ) { full_srcs[ n ] = srcs[ i ];