From: Sven G. <sgo...@ja...> - 2001-02-26 15:51:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 26 February 2001 16:41, Nicolas Cadilhac wrote: > Hi, > > I get this error when calling gljFree at the end of my display method. I > have this with 2.6.0 and had it before this revision too. What is it ? > Thanks > > Nicolas Cadilhac > > GL ERROR : invalid operation > GL ERROR : 1282 == 0x502 > java.lang.Exception > at gl4java.GLContext.gljCheckGL(GLContext.java:1994) > at gl4java.awt.GLCanvas.display(GLCanvas.java:748) Well as you can see, gljCheckGL is called by GLCanvas. gljCheckGL checks the GL error state, with the call of glGetError ! if an error occurs, it is printed plus an exception stack trace. the error state is cleared after the call .. to find the error, you can simply call gljCheckGL at many places within you display method, but not between glBegin and glEnd ! 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 iD8DBQE6mnuDHdOA30NoFAARAu3gAJ4lMkIar8n2cQTSLCOQdpZpYlNPPgCfXp6R yhTgKo3ECb6Z0FDmSeqosxw= =2qUw -----END PGP SIGNATURE----- |