Eriw
Joined: 23 Feb 2010 Posts: 1
|
Posted: Tue Feb 23, 2010 8:21 pm Post subject: Segmentation fault from glGenList and glGenTextures on mac |
|
|
I have a problem geting glGenList and glGenTextures to work on my macbook. The code compiles and runs at school, but I get a segfault on my mac. Isn't it posible to use these functions on mac?
Example of one piece of code thet crashes:
| Code: |
// Create a display list
displayListID = glGenLists(1);
// Compile the display list
glNewList(displayListID, GL_COMPILE);
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f);
glVertex3f(-0.1f, -0.1f, 0.0f);
glTexCoord2f(1.0f, 0.0f);
glVertex3f(0.1f, -0.1f, 0.0f);
glTexCoord2f(1.0f, 1.0f);
glVertex3f(0.1f, 0.1f, 0.0f);
glTexCoord2f(0.0f, 1.0f);
glVertex3f(-0.1f, 0.1f, 0.0f);
glEnd();
glEndList();
|
The program crashes right at the first line at glGenLists(1) , displayListID is a GLuint. |
|