# HG changeset patch # User John Tsiombikas # Date 1315376387 -10800 # Node ID 20a9d3db38cbbff0ef10873cea5dbd989afc022c # Parent 32503603eb7d73b9cb72606a10adec9f28632f69 forgot to actually use bind_texture diff -r 32503603eb7d -r 20a9d3db38cb src/istereo.c --- a/src/istereo.c Wed Sep 07 09:17:15 2011 +0300 +++ b/src/istereo.c Wed Sep 07 09:19:47 2011 +0300 @@ -47,8 +47,7 @@ gl_load_identity(); gl_translatef(0, 0, -8); - glEnable(GL_TEXTURE_2D); - glBindTexture(GL_TEXTURE_2D, tex); + bind_texture(tex, 0); gl_begin(GL_QUADS); gl_texcoord2f(0, 0); @@ -65,7 +64,7 @@ gl_vertex3f(-1, 1, 0); gl_end(); - glDisable(GL_TEXTURE_2D); + bind_texture(0, 0); assert(glGetError() == GL_NO_ERROR); } diff -r 32503603eb7d -r 20a9d3db38cb src/tex.h --- a/src/tex.h Wed Sep 07 09:17:15 2011 +0300 +++ b/src/tex.h Wed Sep 07 09:19:47 2011 +0300 @@ -2,5 +2,6 @@ #define TEX_H_ unsigned int load_texture(const char *fname); +void bind_texture(unsigned int tex, int unit); #endif /* TEX_H_ */