Horde3D http://horde3d.org/forums/ |
|
calling opengl functions http://horde3d.org/forums/viewtopic.php?f=2&t=852 |
Page 1 of 1 |
Author: | spree [ 27.07.2009, 21:52 ] |
Post subject: | calling opengl functions |
I'd like to draw some lines in my scene. For this I'd like to use just plain open gl calls for simplicity. However if I do this: glBegin(GL_LINE); //vertices for line glEnd(); the next horde3d::render call will hit an assertion because there is a glError() somewhere in finishRendering(); Any ideas how to get around this? Do I need to call some cleanup code? |
Author: | swiftcoder [ 27.07.2009, 22:06 ] |
Post subject: | Re: calling opengl functions |
I would assume you are calling some illegal function in between glBegin() and glEnd(). Note that only the vertex specification functions (glVertex*, glNormal*, glTexCoord*, glColor*, and a few others) can legally be called between glBegin and glEnd. |
Author: | spree [ 27.07.2009, 22:15 ] |
Post subject: | Re: calling opengl functions |
Sorry for the noise, I should have used GL_LINES instead of GL_LINE, so it always produced the invalid enum error. Thanks anyway for the quick reply! |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |