Results 1 to 4 of 4

Thread: OpenGL Error:: Invalid Operation

  1. #1
    Member Contributor
    Join Date
    Aug 2000
    Location
    Webster, Ma 01570
    Posts
    64

    OpenGL Error:: Invalid Operation

    Ok guys, you helped me once - so please help me agian!
    I am getting this error in my OpenGl program. This section of code draws a Line Strip given points which are updated on a one second
    basis.
    Everything compiles, and it doesn't core dump. I am seeing what looks like the start of a Line Strip - but's it's not long enough to be
    correct (with the data I am feeding it).
    So I checked my error logs and found "OpenGL Error:: invalid operation". So How do I handle the problem, what should I check to make
    this thing happen? I can't fing too much help about OpenGL errors in the Red, Blue or Green books! If anyone can help that would be
    great!!!

    Thanks
    Roach

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: OpenGL Error:: Invalid Operation

    Hi !

    The most common reason for this is that you have put a statement that is invalid between glBegin/glEnd, that's the only time I have seen that error.

    Mikael

  3. #3
    Member Contributor
    Join Date
    Aug 2000
    Location
    Webster, Ma 01570
    Posts
    64

    Re: OpenGL Error:: Invalid Operation

    What would be an invalid statement???

    Thanks
    Roach

  4. #4
    Senior Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Australia
    Posts
    431

    Re: OpenGL Error:: Invalid Operation

    You've got the blue book? Look up glBegin and the errors that can be generated by it. In short, don't call anything other than glVertex, glColor, glIndex, glNormal, glTexCoord, glEvalCoord, glEvalPoint, glArrayElement, glMaterial, glEdgeFlag, glCallList or glCallLists between glBegin and glEnd.

Similar Threads

  1. Replies: 2
    Last Post: 01-20-2014, 07:48 PM
  2. Shader loading function causes invalid operation error on glUseProgram
    By Ceannfaolaidh in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-12-2013, 08:53 PM
  3. Invalid operation error from GL when using FBO
    By SagoO in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 04-05-2011, 09:27 PM
  4. Replies: 1
    Last Post: 11-01-2000, 06:39 PM
  5. what causes glGenLists to return th error "Invalid Operation"?
    By convict@large in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 11-01-2000, 02:51 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