Micah,

        Thank you for pointing that out.  Steve Baker is the owner of "freeglut" and so we will need his permission to do this.  Given that having the same behavior on different systems is a major goal of "freeglut", I have no difficulty accepting your changes, but we will need to ask Steve.

Steve,

        What do you think?

John F. Fay
Technical Fellow
Jacobs/Sverdrup TEAS Group
850-883-1294

-----Original Message-----
From: freeglut-developer-bounces@lists.sourceforge.net [mailto:freeglut-developer-bounces@lists.sourceforge.net] On Behalf Of Micah Richert

Sent: Wednesday, January 03, 2007 1:15 PM
To: FreeGLUT developers list
Subject: Re: [Freeglut-developer] UseCurrentContext

Sent again, hopefully more people can read it this time...

Hello,

There is an inconsistency between the way Context sharing functions
between Windows and Linux.  Under Linux when the context is shared, the
view point and all attributes of the context are shared.  Under Windows,
only the display lists and textures are shared (at least with original
Glut, I don't recall if I confirmed this using freeglut or not).  I
realize that this is probably convention now under both OSs however I
require the Window's style convention under Linux.  I was able to
achieve this by changing freeglut_window.c lines:
       window->Window.Context = glXGetCurrentContext( );

       if( ! window->Window.Context )
           window->Window.Context = glXCreateContext(
               fgDisplay.Display, window->Window.VisualInfo,
               NULL, ( fgState.DirectContext !=
GLUT_FORCE_INDIRECT_CONTEXT )
           );
to:
/*        window->Window.Context = glXGetCurrentContext( );

       if( ! window->Window.Context ) */
           window->Window.Context = glXCreateContext(
               fgDisplay.Display, window->Window.VisualInfo,
               glXGetCurrentContext( ), ( fgState.DirectContext !=
GLUT_FORCE_INDIRECT_CONTEXT )
           );

This now breaks the Linux convention, and I am not wanting you to adopt
the code above.
My question is should a new Context sharing flag be used in addition to
GLUT_USE_CURRENT_CONTEXT, possibly GLUT_USE_SHAREDLISTS to mean the
Window's style (i.e. only share lists and textures) for sharing contexts
and GLUT_USE_CURRENT_CONTEXT to mean the Linux's style (i.e. full shared
context)?

I am willing to do the coding, but only if it is pretty certain that it
will get incorporated into the standard release.  Basically I don't want
to have to provide my own hacked version of freeglut.

Thanks,
Micah


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeglut-developer