-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 2.0.8
Reported for operating system, platform: Windows (All), All
Comments on the original bug report:
On 2018-07-18 20:11:01 +0000, Michael Larouche wrote:
Created attachment 3272
Patch for SDL 2.0.8 that fix OpenGL with SDL_CreateWindowFromWe use SDL_CreateWindowFrom in our in-house game editor to embed our C++ game engine using a child HWD created by our C# WPF editor. We use OpenGL for rendering and when I developed the embedding, I noticed that OpenGL wasn't initialized properly when using SDL_CreateWindowFrom, the OpenGL extensions weren't there and the effective OpenGL version was 1.1, not 4.x that my video card can support.
This patch included in this bug report fix the issue. Since there's no way to specify the SDL_Window flags when using SDL_CreateWindowFrom, I had to hardcode SDL_WINDOW_OPENGL.
Let me know if you want the patch to be based on the upstream Mercurial repository.