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----- |