|
From: Sandor H. <san...@cs...> - 2009-02-17 01:17:55
|
Hi There,
I am new to Mesa / OpenGL (doing C++ and mainly Qt GUI coding for quite
a while). I received a legacy code on which I made quite some changes on
Windows where it runs fine. I compiled on Linux (SuSE Enterprise 10.2)
and found that it asserts with the following error message in the
command line:
brw_try_draw_prims failed
fastflo: brw_save_api.c:1616: brw_save_EndList: Assertion
`save->vertex_size == 0' failed.
Abort
Wondering what could be wrong I tracked down that the line causing the
assertion is actually the following:
GLfloat a[4][3], GLfloat c[4][3];
//... values settings
FOR0(i, 4) {
glColor3f(c[i][0], c[i][1], c[i][2]);
glVertex3f(a[i][0], a[i][1], a[i][2]); // This is the one; no
problem if removed
}
I printed the values set in glVertex3f below. I am not quite sure if
those cause the assertion or something else so I would be happy to get
some clues. I understand that 6.4.2 is not the latest; I use that
because that is supported with the O/S. I can probably change that if
that is the cause.
Cheers,
Sandor
glVertex3f a[0][0]: 0.000000, a[0][1]: 207.999985, a[0][2]: 0.000000
glVertex3f a[1][0]: 0.000000, a[1][1]: 199.999985, a[1][2]: 0.000000
glVertex3f a[2][0]: 27.146816, a[2][1]: 199.999985, a[2][2]: 0.000000
glVertex3f a[3][0]: 27.146816, a[3][1]: 207.999985, a[3][2]: 0.000000
glVertex3f a[0][0]: 27.146816, a[0][1]: 207.999985, a[0][2]: 0.000000
glVertex3f a[1][0]: 27.146816, a[1][1]: 199.999985, a[1][2]: 0.000000
glVertex3f a[2][0]: 81.432472, a[2][1]: 199.999985, a[2][2]: 0.000000
glVertex3f a[3][0]: 81.432472, a[3][1]: 207.999985, a[3][2]: 0.000000
glVertex3f a[0][0]: 81.432472, a[0][1]: 207.999985, a[0][2]: 0.000000
glVertex3f a[1][0]: 81.432472, a[1][1]: 199.999985, a[1][2]: 0.000000
glVertex3f a[2][0]: 135.718124, a[2][1]: 199.999985, a[2][2]: 0.000000
glVertex3f a[3][0]: 135.718124, a[3][1]: 207.999985, a[3][2]: 0.000000
glVertex3f a[0][0]: 135.718124, a[0][1]: 207.999985, a[0][2]: 0.000000
glVertex3f a[1][0]: 135.718124, a[1][1]: 199.999985, a[1][2]: 0.000000
glVertex3f a[2][0]: 162.860764, a[2][1]: 199.999985, a[2][2]: 0.000000
glVertex3f a[3][0]: 162.860764, a[3][1]: 207.999985, a[3][2]: 0.000000
glVertex3f a[0][0]: 162.860764, a[0][1]: 207.999985, a[0][2]: 0.000000
glVertex3f a[1][0]: 162.860764, a[1][1]: 199.999985, a[1][2]: 0.000000
glVertex3f a[2][0]: 217.146820, a[2][1]: 199.999985, a[2][2]: 0.000000
glVertex3f a[3][0]: 217.146820, a[3][1]: 207.999985, a[3][2]: 0.000000
glVertex3f a[0][0]: 217.146820, a[0][1]: 207.999985, a[0][2]: 0.000000
glVertex3f a[1][0]: 217.146820, a[1][1]: 199.999985, a[1][2]: 0.000000
glVertex3f a[2][0]: 271.432465, a[2][1]: 199.999985, a[2][2]: 0.000000
glVertex3f a[3][0]: 271.432465, a[3][1]: 207.999985, a[3][2]: 0.000000
glVertex3f a[0][0]: 271.432465, a[0][1]: 207.999985, a[0][2]: 0.000000
glVertex3f a[1][0]: 271.432465, a[1][1]: 199.999985, a[1][2]: 0.000000
glVertex3f a[2][0]: 379.999969, a[2][1]: 199.999985, a[2][2]: 0.000000
glVertex3f a[3][0]: 379.999969, a[3][1]: 207.999985, a[3][2]: 0.000000
|