diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-07-25 20:26:23 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-07-25 20:26:23 +0200 |
| commit | e5ce7441c6583a9e8b988ff45681e6906eb31e7a (patch) | |
| tree | 7af30d831c5e9253f17dce3222c979822c380583 /util | |
| parent | 85eedf1a9ee6866a54f311df6c8f76e0b4df442b (diff) | |
split caps into features, limits and pixelformat infos
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_gfx_cimgui.h | 2 | ||||
| -rw-r--r-- | util/sokol_gfx_imgui.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_gfx_cimgui.h b/util/sokol_gfx_cimgui.h index ff5c96e8..6a33522f 100644 --- a/util/sokol_gfx_cimgui.h +++ b/util/sokol_gfx_cimgui.h @@ -2546,7 +2546,7 @@ _SOKOL_PRIVATE void _sg_cimgui_draw_buffer_panel(sg_cimgui_t* ctx, sg_buffer buf } _SOKOL_PRIVATE bool _sg_cimgui_image_renderable(sg_cimgui_t* ctx, sg_image_type type, sg_pixel_format fmt) { - return sg_query_caps().formats[fmt].valid && !sg_query_caps().formats[fmt].depth; + return sg_query_pixelformat(fmt).valid && !sg_query_pixelformat(fmt).depth; } _SOKOL_PRIVATE void _sg_cimgui_draw_embedded_image(sg_cimgui_t* ctx, sg_image img, float* scale) { diff --git a/util/sokol_gfx_imgui.h b/util/sokol_gfx_imgui.h index 81389a6e..a5842d7d 100644 --- a/util/sokol_gfx_imgui.h +++ b/util/sokol_gfx_imgui.h @@ -2542,7 +2542,7 @@ _SOKOL_PRIVATE void _sg_imgui_draw_buffer_panel(sg_imgui_t* ctx, sg_buffer buf) } _SOKOL_PRIVATE bool _sg_imgui_image_renderable(sg_imgui_t* ctx, sg_image_type type, sg_pixel_format fmt) { - return sg_query_caps().formats[fmt].valid && !sg_query_caps().formats[fmt].depth; + return sg_query_pixelformat(fmt).valid && !sg_query_pixelformat(fmt).depth; } _SOKOL_PRIVATE void _sg_imgui_draw_embedded_image(sg_imgui_t* ctx, sg_image img, float* scale) { |