cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

deLuther
Journeyman III

Wrong behavior of OpenGL display lists

Different treating of OpenGL commands inside display list and in immediate mode

Simple illustration:

double color[4];

glNewList(1,GL_COMPILE);

glColor4f(1.0f,0.0f,0.0f,1.0f);

glGetDoublev(GL_CURRENT_COLOR,color);

glEndList();

 

When debugging I`m getting color value of [1,1,1,1] instead of [1,0,0,1]

When glColor() and glGet() are called ouside of display list (i.e. in immediate drawing) everything works as expected.

Example program: http://malefice.fatal.ru/files/GLCFXTest.rar

The same code performed in display list and in immediate mode (key M to switch mode). In display list mode I get strange colored triangles on ATI HD4850 with Catalyst 9.4 (8.11 before) on Windows XP SP2.

0 Likes
0 Replies