[plt-scheme] SGL - swap-buffers

From: Zbyszek Jurkiewicz (zbyszek at duch.mimuw.edu.pl)
Date: Mon Oct 13 03:30:26 EDT 2003

This does not work on RedHat Linux (DrScheme loops and then crashes):

(define (on-paint)
  (send this with-gl-context (lambda () (draw)))
  (send this swap-gl-buffers))

However, this does

(define (on-paint)
  (send this with-gl-context
         (lambda ()
           (send this swap-gl-buffers))))

Same with swap-buffers.

Is it intended that swap-gl-buffers and swap-buffers work only inside
with-gl-context or am I doing something wrong?


Zbyszek Jurkiewicz

Posted on the users mailing list.