Titus
08-01-2003, 02:23 PM
Iīve been using nehes lesson06 as a base for my program...
I changed this:
glBegin(GLQUADS);
blah
blah
blah
blEnd();
with something like this:
glBegin(GL_TRIANGLES)
for(i=0;i<12;i++)
for(j=0;j<3;j++)
glVertex3f(face[i].vert[j])
Obviously this is not the real code (way to large), but the point is that works http://www.opengl.org/discussion_boards/ubb/smile.gif
It draws the 3 vertices for each of the 12 faces.
Everything is fine, the cube spins with the texture and all of that..
The problem is when I hit F1 to swith to fullscreen (or if I started at Fullscreen, switching to window mode)
Then I get the "Send Report" window, I debug it and i get and 00x000000005 Access Violation pointing to:
glVertex3f(faces[i].vertex[j]);
Really donīt know what can it be... I have not repeated the variables (i,j) in any other part of the program..
and as I said it works great in both window mode and fullscreen, the problem shows up when I switch mode.
Any ideas?
Thanks
?
I changed this:
glBegin(GLQUADS);
blah
blah
blah
blEnd();
with something like this:
glBegin(GL_TRIANGLES)
for(i=0;i<12;i++)
for(j=0;j<3;j++)
glVertex3f(face[i].vert[j])
Obviously this is not the real code (way to large), but the point is that works http://www.opengl.org/discussion_boards/ubb/smile.gif
It draws the 3 vertices for each of the 12 faces.
Everything is fine, the cube spins with the texture and all of that..
The problem is when I hit F1 to swith to fullscreen (or if I started at Fullscreen, switching to window mode)
Then I get the "Send Report" window, I debug it and i get and 00x000000005 Access Violation pointing to:
glVertex3f(faces[i].vertex[j]);
Really donīt know what can it be... I have not repeated the variables (i,j) in any other part of the program..
and as I said it works great in both window mode and fullscreen, the problem shows up when I switch mode.
Any ideas?
Thanks
?