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: Opening 2 Glut Windows in separate threads

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2004
    Posts
    20

    Opening 2 Glut Windows in separate threads

    I am experimenting with threads and GLUT. It worked when I opened a single thread that does the init and glutmainloop.

    However, I tried adding a second thread with the same function to pthread_create.

    I got this error when trying to run it

    GLUT: Fatal Error in (unamed): visual with necessary capabilities not found.

    I googled it up and the tips I got was to increase the Depth (bits per pixel) in Xlib?

  2. #2
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: Opening 2 Glut Windows in separate threads

    I may be wrong, but I believe that GLUT does not support multiple threads (i.e. the GLUT context is not thread safe). At least it's worth checking if you haven't already.

Posting Permissions

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