Failed to initialize OpenGL loader for "example_sdl_opengl3" #4653
Replies: 1 comment 1 reply
-
This is the important error here: OpenGL is failing to initialize. Virtual machines have notoriously bad support for accelerated graphics, and VirtualBox is one of the worst. If you only plan to use Dear ImGui and not render anything else (IE: you aren't making a game or some other 3D application) you might be able to get away with using one of the third-party software rasterizers. You might also be able to use the experimental SDL_renderer backend since I believe SDL_renderer supports software rendering. (Do note this requires SDL 2.0.17 which has not been released yet, so you'll have to build SDL yourself.) If you're making something which needs accelerated rendering (IE: a game), you should not use VirtualBox.
Dear ImGui backends typically come in two halves: The platform backend and the rendering backend. The platform backend is responsible for interacting with the OS to handle things like keyboard and mouse input and (in the case of the The rendering backend is responsible for submitting draw commands to actually render things on the screen. In this case, |
Beta Was this translation helpful? Give feedback.
-
Good day,
I managed to build example "example_sdl_opengl3". I did not change any line of code or the makefile or whatever.
Nonetheless, when executing the program I get the following output:
I am using the following Ubuntu system as a virtual box machine, almost clean installation:
What might be the problem here?
A related but different question: Am I right that I have to use the following files in my project if I want to work with SDL2?
I expected that imgui_impl_sdl.h/cpp would be sufficient but as it seems this backend requires the opengl3 backend.
Thanks for helping
Beta Was this translation helpful? Give feedback.
All reactions