diff options
Diffstat (limited to 'faqe.c')
-rw-r--r-- | faqe.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -36,7 +36,7 @@ int main(int argc, char **argv) SDL_GLContext *glc; GLuint prog; struct { - GLint model, view, proj; + GLint model, view, proj, tex; } uni; mat4x4 view; FILE *cube_file; @@ -84,9 +84,12 @@ int main(int argc, char **argv) { "model", &uni.model }, { "view", &uni.view }, { "proj", &uni.proj }, + { "tex", &uni.tex }, { 0 }, }); + gl_uni_set1i(uni.tex, 0); + gl_prog_use(prog); viewport(uni.proj, WIDTH, HEIGHT); |