goat3dgfx

diff src/shader.cc @ 8:98f87a1dbb2f

added COPYING and README
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 18 Nov 2013 03:35:20 +0200
parents 1873dfd13f2d
children 7d6b667821cf
line diff
     1.1 --- a/src/shader.cc	Sun Nov 17 09:13:27 2013 +0200
     1.2 +++ b/src/shader.cc	Mon Nov 18 03:35:20 2013 +0200
     1.3 @@ -608,7 +608,7 @@
     1.4  		GLenum type;
     1.5  		glGetActiveAttrib(prog->get_id(), i, sizeof name - 1, 0, &sz, &type, name);
     1.6  
     1.7 -		for(int j=0; j<sizeof attr_loc / sizeof *attr_loc; j++) {
     1.8 +		for(int j=0; j<(int)(sizeof attr_loc / sizeof *attr_loc); j++) {
     1.9  			if(strcmp(name, attr_loc[j].name) == 0) {
    1.10  				prog->set_attrib_location(name, attr_loc[j].loc);
    1.11  			}