SDL_CreateWindowFrom with OpenGL

btw: I’ve tested the patch only on windows. So no idea if it works on other platforms. Eg. for windows the whole set pixel format of windows part isn’t done by SDL in this case because I already handle this in my application. Not sure how the other platforms behave in this case. But adding this setup code was actually pretty straight forward (I removed it as I did the init stuff in my application).

I would also prefer if SDL 2.0 would support this natively. Currently you only can do it when patching SDL yourself :frowning:

tehcloud wrote:> Yeah, I could really use this functionality as well, but I don’t want to patch the SDL code to make it happen.

I’ve been struggling to get this working for weeks, but keep hitting a brick wall. I’m trying to use a GtkDrawingArea. In SDL 1.2 you could easily do this with the SDL_WINDOWID hack, but that’s gone now :(.