diff --git a/SakuraVNE/src/Application.cpp b/SakuraVNE/src/Application.cpp index 4d3fb37..f7a21b4 100644 --- a/SakuraVNE/src/Application.cpp +++ b/SakuraVNE/src/Application.cpp @@ -1,6 +1,7 @@ #include "Application.h" #include "Event.h" #include "Log.h" +#include "SDL3/SDL_render.h" #include "imgui.h" #include "imgui_impl_sdl3.h" #include "imgui_impl_sdlrenderer3.h" @@ -41,6 +42,9 @@ bool Application::Init() { } else { LOG_INFO("SDL window position set to the initial value: x {0}, y {1}", GetWindowData().pos_x, GetWindowData().pos_y); } + LOG_INFO("Available renderer drivers:"); + for (int i = 0; i < SDL_GetNumRenderDrivers(); i++) { + LOG_INFO("{0}. {1}", i + 1, SDL_GetRenderDriver(i)); } m_Renderer = SDL_CreateRenderer(m_Window, nullptr); @@ -48,6 +52,7 @@ bool Application::Init() { LOG_ERROR("Renderer could not be created! {0}", SDL_GetError()); } else { LOG_INFO("SDL renderer created"); + LOG_INFO("Renderer: {0}", SDL_GetRendererName(m_Renderer)); } SDL_SetRenderVSync(m_Renderer, 1);