summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-13 02:42:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-13 02:42:19 +0300
commitd7c5b59356242dbfbb25384dece7cb4807b84a72 (patch)
tree3bfdc86e5297d3ae9104cdae3101b371dd298f90 /src/render
parent10f73a88a374a250d192b02d783b5de3fe6e4aa6 (diff)
downloadmanaplus-d7c5b59356242dbfbb25384dece7cb4807b84a72.tar.gz
manaplus-d7c5b59356242dbfbb25384dece7cb4807b84a72.tar.bz2
manaplus-d7c5b59356242dbfbb25384dece7cb4807b84a72.tar.xz
manaplus-d7c5b59356242dbfbb25384dece7cb4807b84a72.zip
Show more info in dumping all possible renderers (SDL 2).
Diffstat (limited to 'src/render')
-rw-r--r--src/render/graphics.cpp7
1 files changed, 7 insertions, 0 deletions
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