Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Better error returning

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2000
    Location
    London
    Posts
    28

    Better error returning

    I have just spent 4 days struggling with display lists and glbegin/glend block problems. If I had known that I was putting "dissallowed" commands in these blocks, then I wouldn't have wasted so much time on them.

    Therefore I suggest that OpenGL returns an error when you put things like gltranslatef inside a glBegin/glEnd block. Either that or it allows it to be done inside the block.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Sep 2000
    Location
    Santa Clara, CA
    Posts
    1,463

    Re: Better error returning

    It gives an error already when that happens -- GL_INVALID_OPERATION.

    You should _always_ be checking for GL errors when developing GL apps. glutReportErrors is your friend.

    - Matt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •