mirror of
https://github.com/ocornut/imgui.git
synced 2025-10-07 10:36:29 +00:00
This commit is contained in:
@@ -502,6 +502,7 @@ static bool ImGui_ImplSDL3_Init(SDL_Window* window, SDL_Renderer* renderer, void
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Should technically be a SDL_GLContext but due to typedef it is sane to keep it void* in public interface.
|
||||||
bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window, void* sdl_gl_context)
|
bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window, void* sdl_gl_context)
|
||||||
{
|
{
|
||||||
return ImGui_ImplSDL3_Init(window, nullptr, sdl_gl_context);
|
return ImGui_ImplSDL3_Init(window, nullptr, sdl_gl_context);
|
||||||
@@ -1053,7 +1054,7 @@ static void ImGui_ImplSDL3_InitPlatformInterface(SDL_Window* window, void* sdl_g
|
|||||||
vd->Window = window;
|
vd->Window = window;
|
||||||
vd->WindowID = SDL_GetWindowID(window);
|
vd->WindowID = SDL_GetWindowID(window);
|
||||||
vd->WindowOwned = false;
|
vd->WindowOwned = false;
|
||||||
vd->GLContext = sdl_gl_context;
|
vd->GLContext = (SDL_GLContext)sdl_gl_context;
|
||||||
main_viewport->PlatformUserData = vd;
|
main_viewport->PlatformUserData = vd;
|
||||||
main_viewport->PlatformHandle = vd->Window;
|
main_viewport->PlatformHandle = vd->Window;
|
||||||
}
|
}
|
||||||
|
@@ -35,6 +35,15 @@ HOW TO UPDATE?
|
|||||||
and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users.
|
and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users.
|
||||||
- Please report any issue!
|
- Please report any issue!
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------
|
||||||
|
VERSION 1.90.9 WIP (In Progress)
|
||||||
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
Other changes:
|
||||||
|
|
||||||
|
- Backends: SDL3: Update for introduction of SDL_GLContext from void*. (#7701, #7702)
|
||||||
|
[@bcsanches]
|
||||||
|
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
VERSION 1.90.8 (Released 2024-06-06)
|
VERSION 1.90.8 (Released 2024-06-06)
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user