View Full Version : SDL1.3 in a thread and OpenGL context in another.
01-17-2011, 09:31 PM
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).
01-18-2011, 01:12 AM
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.