Looking at fl_rect.cxx there is a similar solution to the GL driver, that can be solved by making the clip stack a member variable and fl_restore_clip a virtual member function, and deriving this function on the GL driver without the need to polute global variables for any new possible virtual device that can be created in the future:
int fl_clip_state_number=0; // used by gl_begin.cxx to update GL clip _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
