From: Steven H. <hu...@fa...> - 2001-04-08 00:58:17
|
I have a question... if I call a function that hasn't yet been called in my program inside of a glBegin()..glEnd() pair, won't that cause havoc? My theory is that it is the cause of all those spurious GLContext exceptions everyone has been experiencing, because you're limited to a very specific set of commands inside glBegin..glEnd. |
From: Sven G. <sgo...@ja...> - 2001-04-10 23:54:57
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 08 April 2001 02:58, Steven Hugg wrote: > I have a question... if I call a function that hasn't yet been called in > my program inside of a glBegin()..glEnd() pair, won't that cause havoc? > My theory is that it is the cause of all those spurious GLContext > exceptions everyone has been experiencing, because you're limited to a > very specific set of commands inside glBegin..glEnd. > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/lists/listinfo/gl4java-usergroup sorry, i do not understand .. but, please read: GL4Java/README-Version-2-5-2.txt You have to encapsulate your OpenGL calls within GLContext.gljMakeCurrent <your render code> GLContext.gljFree thats it .. cheers, sven - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440; fax: +49-521-2399442; icq-uin: 108264795 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6050UHdOA30NoFAARAqZ8AKCGGjpCAKrRmbZ/LqIVaZ9oNbySiQCeO0wA RnSmLRHeRnXOC4JPZF9odeQ= =fDvP -----END PGP SIGNATURE----- |
From: Steven H. <hu...@fa...> - 2001-04-11 00:57:22
|
Sorry, my question was unclear ... What I meant: When GL4Java dynamically loads a function for the first time (by way of getGLProcAddressHelper) does it call any gl*** functions inside of that code? If it does, this could potentially upset glBegin..glEnd blocks. The problem is that I am experiencing is "invalid operation" when calling a command for the *first* time inside of a glBegin..glEnd pair. This could be glNormal, or glTexCoord. I can fix the problem by calling the commands in my initialization routine, *outside* of a glBegin..glEnd pair (they do nothing in this case except load the function inside GL4Java). I don't know what's causing the problem .. but if something inside of getGLProcAddressHelper (or a function it calls) happened to call glGetError internally, that function is prohibited inside of glBegin..glEnd and throws an error when glEnd() is called. Food for thought.. take care, Steve Sven Goethel wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sunday 08 April 2001 02:58, Steven Hugg wrote: > > I have a question... if I call a function that hasn't yet been called in > > my program inside of a glBegin()..glEnd() pair, won't that cause havoc? > > My theory is that it is the cause of all those spurious GLContext > > exceptions everyone has been experiencing, because you're limited to a > > very specific set of commands inside glBegin..glEnd. > > sorry, i do not understand .. |
From: Sven G. <sgo...@ja...> - 2001-04-11 01:06:37
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 11 April 2001 02:57, Steven Hugg wrote: > Sorry, my question was unclear ... > > What I meant: When GL4Java dynamically loads a function for the first > time (by way of getGLProcAddressHelper) does it call any gl*** functions > inside of that code? If it does, this could potentially upset > glBegin..glEnd blocks. > no ! well, you can see, that only glXGetProxAdress is tried to fetched/called .. in gl4java 2.7.1 (since 2.7.0), all function pointers are now global and fetched right after loading the libraries ! > The problem is that I am experiencing is "invalid operation" when > calling a command for the *first* time inside of a glBegin..glEnd pair. > This could be glNormal, or glTexCoord. > > I can fix the problem by calling the commands in my initialization > routine, *outside* of a glBegin..glEnd pair (they do nothing in this > case except load the function inside GL4Java). > > I don't know what's causing the problem .. but if something inside of > getGLProcAddressHelper (or a function it calls) happened to call > glGetError internally, that function is prohibited inside of > glBegin..glEnd and throws an error when glEnd() is called. > this problem may be fixed now with 2.7.1 .. > Food for thought.. > cheers, sven > take care, > Steve - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440; fax: +49-521-2399442; icq-uin: 108264795 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6061SHdOA30NoFAARAplzAJwJZOItmo1aAtbCshCwviry9zpUwwCghqFT uBqFReDUtKaITm8s/9QK1W0= =hMsj -----END PGP SIGNATURE----- |