We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5118

Summary: SDL_CreateWindowFrom allow opengl context creation
Product: SDL Reporter: daegon.dhsk
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 Keywords: target-2.0.16
Version: don't know   
Hardware: x86   
OS: Windows 10   

Description daegon.dhsk 2020-04-30 20:29:22 UTC
It currently seems impossible to create an opengl window using SDL_CreateWindowFrom().

There are proposed patches here (https://bugzilla.libsdl.org/show_bug.cgi?id=4219), but it would be great to have an official implementation. 

Preferably, something along the lines of 

SDL_CreateWindowFrom(void* data, flags)

would seem best fit (for vulkan, etc.), while also aligning with SDL_CreateWindow.

This would allow ex. creating sdl windows from child windows to hook into editors, etc.