From 2785f9cf9a028f887f28307dc98bef8ab404d4f5 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 30 Mar 2012 07:43:49 -0600 Subject: [PATCH] fix priority of refresh for SGL example While it looks this example was always broken in a sense, the `racket/gui' make the problem more prominent. Closes PR 12662 --- collects/sgl/examples/gl-frame.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/sgl/examples/gl-frame.rkt b/collects/sgl/examples/gl-frame.rkt index 4a5fc79621..59d098d2bc 100644 --- a/collects/sgl/examples/gl-frame.rkt +++ b/collects/sgl/examples/gl-frame.rkt @@ -70,7 +70,7 @@ (set! init? #t)) (gl-draw) (swap-gl-buffers))) - (refresh)) + (queue-callback (lambda () (refresh)) #f)) (define/override (on-size w h) (with-gl-context