| Summary: | Unable to create GL context for external window | ||
|---|---|---|---|
| Product: | SDL | Reporter: | David Pickering <fusi> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | 2132494320, philipp.wiesemann |
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
|
Description
David Pickering
2014-12-11 10:54:46 UTC
In some cases the hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT [1] needs to be configured before using SDL_CreateWindowFrom(). [1] https://wiki.libsdl.org/SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT hello i have face the same problem too. i work with MFC, can't use SDL_CreateWindow to create a window with SDL_WINDOW_OPENGL, so can't set the hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT , int the end , i can't use SDL_GL_CreateContext(). many thanks We've discussed adding a new API for this, and we could also create a hint that would affect the existing API. I'm inclined toward the latter since it would allow people to affect how the SDL window will be created in more flexible ways over time. |