3b / cl-opengl

cl-opengl is a set of CFFI bindings to the OpenGL, GLU and GLUT APIs.
http://common-lisp.net/project/cl-opengl/
Other
279 stars 59 forks source link

support multiple contexts #78

Open 3b opened 7 years ago

3b commented 7 years ago

on all platforms: error checking problem in #10

on windows: extension function pointers are context specific, so technically it should be storing a table of function pointers per context. In practice it is probably safe to reuse the pointers for contexts from same device (or even same driver for multiple similar GPUs), but won't work with GPUs from multiple vendors.