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 4 of 4

Thread: GLUI causes GL_ERROR 1282/GL_INVALID_OPERATION - Operation illegal in current state

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Denmark
    Posts
    13

    GLUI causes GL_ERROR 1282/GL_INVALID_OPERATION - Operation illegal in current state

    Hi every1

    I'm new to openGL/GLUT/GLUI so please bear with me.

    I'm writing a simple openGL program with a GLUI subwindow containing a button. The buttons callback function creates a new GLUI window with a EditText box (simple open file dialog w/o filebrowsing). And finally the EditText box's CB closes the (new) window, but it also causes a GL_INVALID_OPERATION.

    I have an animation running in the main GL window.

    Can any1 tell me what I'm doing wrong or if I have discovered a bug in GLUI?

    I'm trying to write the program as platform independent as possible, but right now I writing/testing on WinXP with cygwin/gcc.

    AFAIK I'm using the newest versions of GL/GLUT/GLUI (1.3.1 / 3.7.2 / 2.01).

    Let me know and I'll post any other info that might be helpfull.


    Thanks

    Cthulhu
    None yet...

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Denmark
    Posts
    13

    Re: GLUI causes GL_ERROR 1282/GL_INVALID_OPERATION - Operation illegal in current state

    Come on... some1 gotta be able to help me put here.

    I'll throw you a bone, here's a snip from the code (namely the callback functions in question):
    Code :
    void cb_openfile() {
      cout << "Opening file: " << filename << "\n";
      glui_window_openfile->close();
    }
     
    void cb_openfile_window() {
      glui_window_openfile
        = GLUI_Master.create_glui("Open file");
     
      GLUI_EditText *openfilename
        = glui_window_openfile->add_edittext("Filename:",
    					 GLUI_EDITTEXT_TEXT,
    					 filename,
    					 1,
    					 (GLUI_Update_CB)cb_openfile);
      GLUI_Button *glui_open
        = glui_window_openfile->add_button("Open",
    				       1,
    				       (GLUI_Update_CB)cb_openfile);
    }
    [This message has been edited by cthulhu666 (edited 07-26-2002).]
    None yet...

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Denmark
    Posts
    13

    Re: GLUI causes GL_ERROR 1282/GL_INVALID_OPERATION - Operation illegal in current state

    ???

    Why on earth does the UBB Code "CODE" insist on writing the first functions with a smaller font?

    Oh well, you can still read it.
    None yet...

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Denmark
    Posts
    13

    Re: GLUI causes GL_ERROR 1282/GL_INVALID_OPERATION - Operation illegal in current state

    Any1???

    Someone's gotta be able to help me out here.

    Just a hint or a pointer where to look would be highly appreciated.

    Thanks
    None yet...

Posting Permissions

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