Browse files

with-program: restore "no program" as well on exit

Restore the fixed function pipeline state as well.  bind-program
treats program nil specially by mapping it to program number 0, which
in turn re-enables the fixed function pipeline.
  • Loading branch information...
1 parent d11e036 commit 40bf7021fd67a7a2bd8073b1e662ea7628dd9d55 @mva mva committed with Jul 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/penumbra/opengl/shader.clj
2 src/penumbra/opengl/shader.clj
@@ -58,7 +58,7 @@
(bind-program program)
- (if (and prev-program (not= prev-program program))
+ (if (not= prev-program program)
(bind-program prev-program))))))
(defn- int? [p]

0 comments on commit 40bf702

Please sign in to comment.