summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-12-12 22:00:34 +0100
committerAndre Weissflog <floooh@gmail.com>2019-12-12 22:00:55 +0100
commitd86d96625d6be0171c99909187e041ae699dbbf0 (patch)
tree03e958d262725de1551fc029ce91477a8e1df4da /util
parent0e950dc28eebecb729c2b92e1dbfa93315e48d89 (diff)
sokol_gfx_imgui.h: fix UI-renderable check.
Fixes #240
Diffstat (limited to 'util')
-rw-r--r--util/sokol_gfx_imgui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sokol_gfx_imgui.h b/util/sokol_gfx_imgui.h
index 4035f976..122e34e2 100644
--- a/util/sokol_gfx_imgui.h
+++ b/util/sokol_gfx_imgui.h
@@ -2673,7 +2673,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_pixelformat(fmt).sample && !sg_query_pixelformat(fmt).depth;
+ return (type == SG_IMAGETYPE_2D) && sg_query_pixelformat(fmt).sample && !sg_query_pixelformat(fmt).depth;
}
_SOKOL_PRIVATE void _sg_imgui_draw_embedded_image(sg_imgui_t* ctx, sg_image img, float* scale) {