aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_imgui.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-11-19 13:29:12 +0100
committerAndre Weissflog <floooh@gmail.com>2025-11-19 13:29:12 +0100
commitbf8ebc538e6b6edf2d30892f657c4d3a34c040c6 (patch)
tree73fbe160da6fe6a48c1474ef244f1dee5f92c0cb /util/sokol_imgui.h
parent09a31200a381974c0ecd2b1e94be9f66f62a35a5 (diff)
parentb517f27e7d6bdefc7883110e42dab27cba800b50 (diff)
Merge branch 'master' into experimental-vulkan
Diffstat (limited to 'util/sokol_imgui.h')
-rw-r--r--util/sokol_imgui.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/sokol_imgui.h b/util/sokol_imgui.h
index a1fd4d34..89c47890 100644
--- a/util/sokol_imgui.h
+++ b/util/sokol_imgui.h
@@ -3145,9 +3145,12 @@ SOKOL_API_IMPL void simgui_new_frame(const simgui_frame_desc_t* desc) {
static sg_pipeline _simgui_bind_texture_sampler(sg_bindings* bindings, ImTextureID imtex_id) {
const sg_view tex_view = simgui_texture_view_from_imtextureid(imtex_id);
+ SOKOL_ASSERT(tex_view.id != SG_INVALID_ID);
const sg_image img = sg_query_view_image(tex_view);
+ SOKOL_ASSERT(img.id != SG_INVALID_ID);
bindings->views[0] = tex_view;
bindings->samplers[0] = simgui_sampler_from_imtextureid(imtex_id);
+ SOKOL_ASSERT(bindings->samplers[0].id != SG_INVALID_ID);
if (sg_query_pixelformat(sg_query_image_pixelformat(img)).filter) {
return _simgui.def_pip;
} else {