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: SDL1.3 in a thread and OpenGL context in another.

  1. #1
    Intern Newbie
    Join Date
    Aug 2010
    Posts
    43

    SDL1.3 in a thread and OpenGL context in another.

    Does anyone have an example? I know SDL input has to be only in its "main" thread but I find trouble to give input properly to another thread with an SDL window (which got context with Makecurrent from a window made on main).

  2. #2
    Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    466

    Re: SDL1.3 in a thread and OpenGL context in another.

    You need to share context. I don't know how to do it with SDL, but it's quite easy with glx, wgl. Have a look at the SDL documentation.

Posting Permissions

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