can't use opengl if i use SDL_CreateWindowFrom

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

can't use opengl if i use SDL_CreateWindowFrom

airc
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

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Reply | Threaded
Open this post in threaded view
|

Re: can't use opengl if i use SDL_CreateWindowFrom

ancientcc-3

If you want use opengl, must call SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl") before SDL_CreateRenderer.

 


_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Reply | Threaded
Open this post in threaded view
|

Re: can't use opengl if i use SDL_CreateWindowFrom

airc
In reply to this post by airc
yes i did that , but nothings changed . SDL_RendererInfo.name always show direct3d9

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Reply | Threaded
Open this post in threaded view
|

Re: can't use opengl if i use SDL_CreateWindowFrom

airc
In reply to this post by airc
after searching seems an old problem , sdl can't create an opengl context for a forigen window ! really weird.

_______________________________________________
SDL mailing list
[hidden email]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org