Re: XForms: Initialisation of OpenGL

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 7 May 98 06:55:46 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> > Try adding a call to fl_activate_glcanvas() before any call to
> > OpenGL/MesaGL routines. Even if you have only one OpenGL drawing
>
> I already tried that, but didn't make any difference. Anyway, the call
> was in the "expose" handler FOR the glcanvas, so it should be valid.

XForms doesn't automatically make a fl_activate_glcanvas() call for
you when it enters your handler, so you need to do it.

Since I don't recall the context, all I can suggest is to check all
your OpenGL calls for validity by calling glGetError().

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/