::Exception in Opengl Display List::

Discussion in 'Beginners Zone' started by vindos, Jan 25, 2008.

  1. vindos

    Newcomer

    Joined:
    Nov 1, 2005
    Messages:
    64
    Likes Received:
    0
    hello ppl...
    I create a display list using these calls

    GLfloat *Points = new GLfloat[3 * count ];

    // Begin filling the points with values
    --------------------------
    // End filling

    glEnableClientState(GL_VERTEX_ARRAY);
    glVertexPointer(3, GL_FLOAT, 0, Points);
    DisplayList = glGenLists(1);
    glNewList( DisplayList, GL_COMPILE );
    glDrawArrays(GL_QUADS, 0, count );
    glEndList();
    glDisableClientState(GL_VERTEX_ARRAY);
    delete [] Points;

    It works fine but problem occurs when the value of vertex count increases.
    I again call these Opengl functions to setup new display list . In tat case glDrawArray gives unhandled exception.

    Plzzz help:?:
     
  2. vindos

    Newcomer

    Joined:
    Nov 1, 2005
    Messages:
    64
    Likes Received:
    0
    glDisableClientState(GL_NORMAL_ARRAY);
    glDisableClientState(GL_TEXTURE_COORD_ARRAY);
    glDisableClientState(GL_COLOR_ARRAY);
    glDisableClientState(GL_EDGE_FLAG_ARRAY);
    glDisableClientState(GL_INDEX_ARRAY);

    i think after addin these lines problem got solved
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...