From 459ccf7d6b920bbac2cc5417cc2dfaa7dea5e4b7 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 5 Mar 2024 12:53:14 +0100 Subject: [PATCH] print sdl render --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 3edf5e1..a3f9c6e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,6 +51,12 @@ int main(int argc, char** argv) { std::cerr << "SDL_CreateRenderer failed (" << SDL_GetError() << ")\n"; return 1; } + { + SDL_RendererInfo ri; + if (SDL_GetRendererInfo(renderer.get(), &ri) == 0) { + std::cout << "SDL Renderer: " << ri.name << "(f:" << ri.flags << ")\n"; + } + } IMGUI_CHECKVERSION(); ImGui::CreateContext();