changeset 1060 | 4cdf5a3ceb03 |
parent 1056 | 73c697a7e950 |
child 1063 | b10281d6eb45 |
--- a/mojoshader_opengl.c Thu Oct 20 12:08:12 2011 -0400 +++ b/mojoshader_opengl.c Thu Oct 20 17:50:27 2011 -0400 @@ -1687,16 +1687,11 @@ void MOJOSHADER_glBindProgram(MOJOSHADER_glProgram *program) { - GLuint handle = 0; - if (program == ctx->bound_program) return; // nothing to do. if (program != NULL) - { - handle = program->handle; program->refcount++; - } // if memset(ctx->want_attr, '\0', sizeof (ctx->want_attr[0]) * ctx->max_attrs);