Discussion:
[SDL] can't use opengl if i use SDL_CreateWindowFrom
airc
2016-12-01 09:15:34 UTC
Permalink
Hi
iam creating my edit tool using wxwidgets & sdl2 , i notied that sdl2 uses d3d9 by default .
sdl2 window initialized with SDL_CreateWindowFrom(wxpanel->GetHandle()) , so there is no SDL_WINDOW_OPENGL flag .
i used SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl") befor the creation of the renderer , but sdl2 still use d3d9.

any advices ?

thanks
leagor
2016-12-01 14:05:11 UTC
Permalink
If you want use opengl, must call SDL_SetHint(SDL_HINT_RENDER_DRIVER,
"opengl") before SDL_CreateRenderer.
airc
2016-12-01 15:58:50 UTC
Permalink
yes i did that , but nothings changed . SDL_RendererInfo.name always show direct3d9
airc
2016-12-02 13:06:36 UTC
Permalink
after searching seems an old problem , sdl can't create an opengl context for a forigen window ! really weird.
Loading...