Rebind application-requested program if we had to change it. trunk
authorRyan C. Gordon <icculus@icculus.org>
Thu, 31 Jul 2008 19:15:06 -0400
branchtrunk
changeset 441 b33b1492d929
parent 440 2af2cb164c2e
child 442 0c5de5647beb
Rebind application-requested program if we had to change it.
mojoshader_opengl.c
--- a/mojoshader_opengl.c	Thu Jul 31 19:05:57 2008 -0400
+++ b/mojoshader_opengl.c	Thu Jul 31 19:15:06 2008 -0400
@@ -1148,6 +1148,7 @@
                 fill_constant_array(f, base, size, pd);
                 ctx->profileUseProgramObject(program);
                 ctx->profileUniform4fv(pd, loc, size, f);
+                ctx->profileUseProgramObject(ctx->bound_program);
             } // if
             else
             {