From: Sven G. <sgo...@ja...> - 2000-10-26 16:24:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 22 October 2000 12:16, you wrote: > Hello! > > It seems like this message slipped by unnoticed. Since it is important > issue I'm sending it again. > > > > -------- Original Message -------- > From: Max Gilead <gi...@li...> > Subject: Activating and freeing GL context > To: GL4Java mailing list <gl4...@li...> > > Hello! > > Is there any way of checking if a GL context is made already current > (gljMakeCurrent())? Calling gljMakeCurrent() twice crashes JVM, haven't > checkeg gljFree() twice... but is there some clean way of checking it? > Hmm .. well no application - in my experience - crashes, if gljMakeCurrent replaces a current context ! Well, we can add a gljGetCurrentContext native function to GLContext. Also we may can add a gljMakeCurrentNoReplace thing to GLContext ! How do you vote ? > BTW, is it possible to change GL4Java's behavior from crashing JVM to > just throwing an exception in case of duplicate context activation? This > is true for GL4J 2.4.0.0 and Sun's JVMs 1.2.2 and 1.3rc1 and IBM's 1.3 / > Linux. > Never happens to me. Please send a little code, where the error occures (a complete class, please). > Max > Sven > > -- > Max Gilead (gi...@li...) > http://3d.linart.krakow.pl/OfficinaArtificialis > --- > -- XMage: Image / 3D / OpenGL Java library - > http://xmage.sourceforge.net > --------------------------------------------------------------------------- >-- -- This email was published on recyclable bytes and no AI was > harmed -- > -- during its > creation. -- - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 ! PEACE ON MOTHER EARTH - and the middle east, etc., of course - NOW ! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.3 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE5+FpZHdOA30NoFAARAm5cAKCbdZi6ND60ocC0+49cQcuZcGntcACfUQU7 7OLi50xfhUYmPLAMMG1rWSU= =/8uJ -----END PGP SIGNATURE----- |