0 Replies Latest reply on Apr 16, 2009 3:39 PM by deLuther

    Wrong behavior of OpenGL display lists

    deLuther
      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.