diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-07-29 19:03:32 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-07-29 19:03:32 +0200 |
| commit | 3abd4563fcbe305a6559288be3dea6fcdc4efffb (patch) | |
| tree | 97ba0c9e69a6e86170fc6353a540f506ecf87cd1 /util | |
| parent | de71620b3e560fc0bcbd818bdc3da8b7ea7e9b1f (diff) | |
sokol_gfx.h: more GL pixel format cleanup
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_gfx_imgui.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/util/sokol_gfx_imgui.h b/util/sokol_gfx_imgui.h index d477ea86..069112f7 100644 --- a/util/sokol_gfx_imgui.h +++ b/util/sokol_gfx_imgui.h @@ -3218,18 +3218,20 @@ _SOKOL_PRIVATE void _sg_imgui_draw_caps_panel(sg_imgui_t* ctx) { ImGui::Text(" msaa_render_targets: %s", _sg_imgui_bool_string(f.msaa_render_targets)); ImGui::Text(" imagetype_3d: %s", _sg_imgui_bool_string(f.imagetype_3d)); ImGui::Text(" imagetype_array: %s", _sg_imgui_bool_string(f.imagetype_array)); - ImGui::Text("\nPixelformats:"); + ImGui::Text("\nUsable Pixelformats:"); for (int i = (int)(SG_PIXELFORMAT_NONE+1); i < (int)_SG_PIXELFORMAT_NUM; i++) { sg_pixel_format fmt = (sg_pixel_format)i; sg_pixelformat_info info = sg_query_pixelformat(fmt); - 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 ":""); + if (info.sample) { + 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 ":""); + } } } |