If a call is made thus:
call swap_opengl_buffers()
and there is not an open buffer (i.e. if there have been no calls to openGl drawing routines in the current window) then a fatal error results, and the program crashes.
I have a work around. This basically makes sure that the swap call only occurs in one place in a program and that a global logical is set true only when drawing has been initiated. Then this logical is tested immediately prior to the swap call. This works, but it is not elegant, and more seriously, makes restrictions on the design of the code.
Is it possible that the error generated could be made not fatal?