istereo
diff src/istereo.c @ 10:f72f96c93972
bah
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 07 Sep 2011 08:22:18 +0300 |
parents | 22dc37e3ca05 |
children | 698cbf1a1b97 |
line diff
1.1 --- a/src/istereo.c Wed Sep 07 08:16:06 2011 +0300 1.2 +++ b/src/istereo.c Wed Sep 07 08:22:18 2011 +0300 1.3 @@ -78,6 +78,11 @@ 1.4 if(!(prog = create_program_link(vs, ps))) { 1.5 return -1; 1.6 } 1.7 + 1.8 + glBindAttribLocation(prog, 0, "attr_vertex"); 1.9 + glBindAttribLocation(prog, 1, "attr_color"); 1.10 + glLinkProgram(prog); 1.11 + 1.12 return prog; 1.13 } 1.14 1.15 @@ -103,8 +108,8 @@ 1.16 1.17 gl_apply_xform(prog); 1.18 1.19 - vloc = glGetAttribLocation(prog, "attr_vertex"); 1.20 - cloc = glGetAttribLocation(prog, "attr_color"); 1.21 + vloc = 0;//glGetAttribLocation(prog, "attr_vertex"); 1.22 + cloc = 1;//glGetAttribLocation(prog, "attr_color"); 1.23 assert(vloc >= 0 && cloc >= 0); 1.24 1.25 glVertexAttribPointer(vloc, 2, GL_FLOAT, 0, 0, squareVertices);