summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-07-28 21:38:46 +0200
committerAndre Weissflog <floooh@gmail.com>2019-07-28 21:38:46 +0200
commitde71620b3e560fc0bcbd818bdc3da8b7ea7e9b1f (patch)
tree413a80bd88baced7fb0091742f690fd943173b7a
parent4aeeafff9f7982b692a637b6b35c8f8c5441287f (diff)
sokol_gfx_imgui.h: tweak capabilities window
-rw-r--r--util/sokol_gfx_imgui.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/util/sokol_gfx_imgui.h b/util/sokol_gfx_imgui.h
index 26986b19..d477ea86 100644
--- a/util/sokol_gfx_imgui.h
+++ b/util/sokol_gfx_imgui.h
@@ -3221,14 +3221,15 @@ _SOKOL_PRIVATE void _sg_imgui_draw_caps_panel(sg_imgui_t* ctx) {
ImGui::Text("\nPixelformats:");
for (int i = (int)(SG_PIXELFORMAT_NONE+1); i < (int)_SG_PIXELFORMAT_NUM; i++) {
sg_pixel_format fmt = (sg_pixel_format)i;
- ImGui::Text(" %s:", _sg_imgui_pixelformat_string(fmt));
sg_pixelformat_info info = sg_query_pixelformat(fmt);
- ImGui::Text(" sample: %s", _sg_imgui_bool_string(info.sample));
- ImGui::Text(" filter: %s", _sg_imgui_bool_string(info.filter));
- ImGui::Text(" blend: %s", _sg_imgui_bool_string(info.blend));
- ImGui::Text(" render: %s", _sg_imgui_bool_string(info.render));
- ImGui::Text(" msaa: %s", _sg_imgui_bool_string(info.msaa));
- ImGui::Text(" depth: %s", _sg_imgui_bool_string(info.depth));
+ ImGui::Text(" %s: %s%s%s%s%s%s",
+ _sg_imgui_pixelformat_string(fmt),
+ info.sample ? "SAMPLE ":"",
+ info.filter ? "FILTER ":"",
+ info.blend ? "BLEND ":"",
+ info.render ? "RENDER ":"",
+ info.msaa ? "MSAA ":"",
+ info.depth ? "DEPTH ":"");
}
}