gl: Replace public with-gl-library with internal with-gl-context.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sat, 30 Apr 2016 20:35:34 +0000 (13:35 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sat, 30 Apr 2016 20:35:34 +0000 (13:35 -0700)
commitcb06a58d371172b974ead9428730cc73021451d0
tree8bd04a85c7fc7a6d260dcf1beb9f60dad3ef9bc8
parent9cd88d844fb73539f380c3e86b2118240bf7ef7b
gl: Replace public with-gl-library with internal with-gl-context.

A mutex cannot be grabbed in Gtk draw callbacks because they cannot
suspend.  If ALL GL calls are made in Gtk callbacks, serial use of the
library is assured.  To ensure that the library is not used without a
current context, a parameter is used instead.
src/gl/gl-glx.scm
src/gl/gl.scm
src/gl/glxgears.pkg
src/gl/glxgears.scm