|
|
@ -502,6 +502,7 @@ static bool ImGui_ImplSDL3_Init(SDL_Window* window, SDL_Renderer* renderer, void |
|
|
|
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) |
|
|
|
{ |
|
|
|
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->WindowID = SDL_GetWindowID(window); |
|
|
|
vd->WindowOwned = false; |
|
|
|
vd->GLContext = sdl_gl_context; |
|
|
|
vd->GLContext = (SDL_GLContext)sdl_gl_context; |
|
|
|
main_viewport->PlatformUserData = vd; |
|
|
|
main_viewport->PlatformHandle = vd->Window; |
|
|
|
} |
|
|
|