From d7c5b59356242dbfbb25384dece7cb4807b84a72 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Sep 2017 02:42:19 +0300 Subject: Show more info in dumping all possible renderers (SDL 2). --- src/render/graphics.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp index 8ee3b5efa..db452aed5 100644 --- a/src/render/graphics.cpp +++ b/src/render/graphics.cpp @@ -465,6 +465,13 @@ void Graphics::dumpRendererInfo(const char *restrict const str, logger->log(" vsync"); if (info.flags & SDL_RENDERER_TARGETTEXTURE) logger->log(" texture target"); + logger->log("max texture size: %d,%d", + info.max_texture_width, + info.max_texture_height); + const size_t sz = CAST_SIZE(info.num_texture_formats); + logger->log("texture formats:"); + for (size_t f = 0; f < sz; f ++) + logger->log(" %u", info.texture_formats[f]); } #endif // USE_SDL2 -- cgit v1.2.3-60-g2f50