Results 1 to 3 of 3

Thread: Display Lists

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    4

    Display Lists

    I have been working on getting a simple 3D framework up using SDL and OpenGL. I tried to set up a couple of display lists, however no matter where in my code I call glGenLists() it returns 0, even if I only try to generate 1 list. glGetError() returns a GL_INVALID_OPERATION error. This error code is, according to the documentation I have, supposed to be generated if glGenLists() is called between a glBegin() and glEnd, but I am not doing this. I am stumped.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Display Lists

    Looks like you don't have a valid rendering context at the point where you create your display list.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    4

    Re: Display Lists

    DOH!

    Thanks, I was trying to call genLists too early in my code. That also fixed my access violation when quitting my demo. I was deleting the lists too soon, i.e. My draw function could possibly be called AFTER I had deleted my lists.

Similar Threads

  1. cg & display lists
    By nib in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 11-04-2006, 07:22 PM
  2. Display Lists
    By azcoder in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-01-2002, 06:42 AM
  3. display lists inside display lists...
    By architekt in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-22-2002, 08:55 PM
  4. Display Lists
    By Robin Forster in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-14-2001, 06:11 PM
  5. display lists
    By frogger in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-27-2000, 10:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean