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 - SDL_CreateWindowFrom allow opengl context creation
Summary: SDL_CreateWindowFrom allow opengl context creation
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: x86 Windows 10
: P2 blocker
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.16
Depends on:
Blocks:
 
Reported: 2020-04-30 20:29 UTC by daegon.dhsk
Modified: 2020-07-16 18:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.