Horde3D

Next-Generation Graphics Engine
It is currently 27.11.2024, 13:24

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: calling opengl functions
PostPosted: 27.07.2009, 21:52 
Offline

Joined: 16.10.2008, 01:02
Posts: 18
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?


Top
 Profile  
Reply with quote  
PostPosted: 27.07.2009, 22:06 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
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.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
PostPosted: 27.07.2009, 22:15 
Offline

Joined: 16.10.2008, 01:02
Posts: 18
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!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group