Re: [sdljava-users] glew initialisation too early in gljava
Status: Beta
Brought to you by:
ivan_ganza
From: Gregor <Gre...@gm...> - 2005-09-03 15:58:42
|
Hello! I will send you a confirmation as soon as I can. However, I'm fighting at=20 another front right now which effectively prevents me from testing this=20 change right now. Please be patient! Regards, Gregor On Saturday 03 September 2005 17:11, Ivan Z. Ganza wrote: > Greetings, > > I've changed the code so that it does not call SWIG_glew_init(). The > user of the library must now call this at the appropriate time. > > CVS has been updated. Please let me know if this works for you. I've > also updated the class comment in GlewImpl. > > Thanks, > -Ivan/ > > Gregor M=FCckl wrote: > >Hi! > > > >I discovered that the initialisation of glew happens far to early in > > gljava, thus crashing any program that wants to use it. The reason is > > that newer nvidia drivers (correctly) don't return a value on > > glGetString(GL_VERSION) unless there is a valid glx context from which > > this function is called. See glxinfo as an example on how it should be > > done. > > > >The glew initialisation sits in a static block which is executed on > > program startup, far too early to give the program a chance to create a > > context. Maybe you should move that to a user-callable init function > > instead of executing it automatically? > > > >Regards, > >Gregor > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices Agile & Plan-Driven Development * Managing Projects & Teams * > > Testing & QA Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > >sdljava-users mailing list > >sdl...@li... > >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic= es > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |