summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-09-09 08:59:54 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-09-09 08:59:54 -0400
commitafe98dbcd760a15eb70b8f39cddf34a8dddd761f (patch)
tree40c6c168ab004fd6eb52cb6f949cda1d36b9a61b
parent7ef2178ca853cde6fb376a9d35cadcaac402ba99 (diff)
render: Force OpenGL state changes when resetting context.
* sly/render.scm (graphics-reset!): Force context changes.
-rw-r--r--sly/render.scm14
1 files changed, 7 insertions, 7 deletions
diff --git a/sly/render.scm b/sly/render.scm
index bc6db6b..c1d19e3 100644
--- a/sly/render.scm
+++ b/sly/render.scm
@@ -164,13 +164,13 @@
(make-transform-stack transform-stack-size)))
(define (graphics-reset! gfx)
- (set-graphics-blend-mode! gfx #f)
- (set-graphics-depth-test! gfx #f)
- (set-graphics-texture! gfx null-texture)
- (set-graphics-shader! gfx null-shader-program)
- (set-graphics-mesh! gfx null-mesh)
- (set-graphics-framebuffer! gfx null-framebuffer)
- (set-graphics-viewport! gfx null-viewport)
+ (set-graphics-blend-mode! gfx #f #t)
+ (set-graphics-depth-test! gfx #f #t)
+ (set-graphics-texture! gfx null-texture #t)
+ (set-graphics-shader! gfx null-shader-program #t)
+ (set-graphics-mesh! gfx null-mesh #t)
+ (set-graphics-framebuffer! gfx null-framebuffer #t)
+ (set-graphics-viewport! gfx null-viewport #t)
(stack-transform-identity! (graphics-projection gfx))
(stack-transform-identity! (graphics-model-view gfx)))