mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-08 13:19:17 +01:00
feat(vulkan): gfxrenderer picks the opengl 4.6 or the vulkan 1.4 renderer (B1-B3)
This commit is contained in:
@@ -389,7 +389,11 @@ bool ui_layer::init(GLFWwindow *Window)
|
||||
|
||||
imgui_style();
|
||||
|
||||
ImGui_ImplGlfw_InitForOpenGL(m_window, false);
|
||||
// a window without an opengl context belongs to the vulkan renderer
|
||||
if (glfwGetWindowAttrib(m_window, GLFW_CLIENT_API) == GLFW_NO_API)
|
||||
ImGui_ImplGlfw_InitForVulkan(m_window, false);
|
||||
else
|
||||
ImGui_ImplGlfw_InitForOpenGL(m_window, false);
|
||||
|
||||
if (!GfxRenderer->GetImguiRenderer() || !GfxRenderer->GetImguiRenderer()->Init())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user