Hi,
Having a glEnd without a glBegin crashes the driver with:
"t_imm_api.c:316: _tnl_end: Assertion `ctx->Driver.NeedFlush & 0x1'
failed". The video driver used is dri mga build 20020910 on a Matrox
G400 16Mb. Here is a stupid program I wrote to demonstrate this:
#include <GL/glut.h>
void init(void)
{
glClearColor (0.0, 0.0, 0.0, 0.0);
}
void display(void)
{
glClear (GL_COLOR_BUFFER_BIT);
//glBegin(GL_POINTS); // _here_is_the_problem_!!!_
glEnd();
}
void reshape (int w, int h)
{
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
gluPerspective(60.0, (GLfloat) w/(GLfloat) h, 0.1, 20.0);
gluLookAt (0,0,8, 0,0,0, 0,1,0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_RGB);
glutInitWindowSize (100, 100);
glutInitWindowPosition (0, 0);
glutCreateWindow (argv[0]);
init();
glutDisplayFunc(display);
glutMainLoop();
return 0;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel