aboutsummaryrefslogtreecommitdiff
path: root/util
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
parent09a31200a381974c0ecd2b1e94be9f66f62a35a5 (diff)
parentb517f27e7d6bdefc7883110e42dab27cba800b50 (diff)
Merge branch 'master' into experimental-vulkan
Diffstat (limited to 'util')
-rw-r--r--util/sokol_gfx_imgui.h4
-rw-r--r--util/sokol_imgui.h3
-rw-r--r--util/sokol_spine.h10
3 files changed, 12 insertions, 5 deletions
diff --git a/util/sokol_gfx_imgui.h b/util/sokol_gfx_imgui.h
index fd025087..58481cee 100644
--- a/util/sokol_gfx_imgui.h
+++ b/util/sokol_gfx_imgui.h
@@ -4488,7 +4488,8 @@ _SOKOL_PRIVATE void _sgimgui_draw_capture_panel(sgimgui_t* ctx) {
}
_SOKOL_PRIVATE void _sgimgui_draw_caps_panel(void) {
- _sgimgui_igtext("Backend: %s\n\n", _sgimgui_backend_string(sg_query_backend()));
+ _sgimgui_igtext("Backend: %s\n", _sgimgui_backend_string(sg_query_backend()));
+ _sgimgui_igtext("Dear ImGui Version: %s\n\n", IMGUI_VERSION);
sg_features f = sg_query_features();
_sgimgui_igtext("Features:");
_sgimgui_igtext(" origin_top_left: %s", _sgimgui_bool_string(f.origin_top_left));
@@ -4500,6 +4501,7 @@ _SOKOL_PRIVATE void _sgimgui_draw_caps_panel(void) {
_sgimgui_igtext(" separate_buffer_types: %s", _sgimgui_bool_string(f.separate_buffer_types));
_sgimgui_igtext(" draw_base_vertex: %s", _sgimgui_bool_string(f.draw_base_vertex));
_sgimgui_igtext(" draw_base_instance: %s", _sgimgui_bool_string(f.draw_base_instance));
+ _sgimgui_igtext(" gl_texture_views: %s", _sgimgui_bool_string(f.gl_texture_views));
sg_limits l = sg_query_limits();
_sgimgui_igtext("\nLimits:\n");
_sgimgui_igtext(" max_image_size_2d: %d", l.max_image_size_2d);
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 {
diff --git a/util/sokol_spine.h b/util/sokol_spine.h
index f8f1e0e1..ec142545 100644
--- a/util/sokol_spine.h
+++ b/util/sokol_spine.h
@@ -4097,10 +4097,11 @@ static sspine_resource_state _sspine_init_context(_sspine_context_t* ctx, const
pip_desc.label = "sspine-pip-normal/additive";
ctx->pip.normal_additive = sg_make_pipeline(&pip_desc);
- pip_desc.colors[0].blend.src_factor_rgb = SG_BLENDFACTOR_ZERO;
- pip_desc.colors[0].blend.dst_factor_rgb = SG_BLENDFACTOR_SRC_COLOR;
- pip_desc.colors[0].blend.src_factor_alpha = SG_BLENDFACTOR_ZERO;
- pip_desc.colors[0].blend.dst_factor_alpha = SG_BLENDFACTOR_ONE;
+ pip_desc.colors[0].blend.src_factor_rgb = SG_BLENDFACTOR_DST_COLOR;
+ pip_desc.colors[0].blend.dst_factor_rgb = SG_BLENDFACTOR_ONE_MINUS_SRC_COLOR;
+ pip_desc.colors[0].blend.src_factor_alpha = SG_BLENDFACTOR_DST_ALPHA;
+ pip_desc.colors[0].blend.dst_factor_alpha = SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA;
+
pip_desc.label = "sspine-pip-multiply";
ctx->pip.multiply = sg_make_pipeline(&pip_desc);
@@ -5257,6 +5258,7 @@ static void _sspine_draw_layer(_sspine_context_t* ctx, int layer, const sspine_l
sg_apply_pipeline(cmd->pip);
cur_pip_id = cmd->pip.id;
sg_apply_uniforms(0, &vsparams_range);
+ sg_apply_uniforms(1, &fsparams_range);
cur_view_id = SG_INVALID_ID;
}
if ((cur_view_id != cmd->view.id) || (cur_smp_id != cmd->smp.id)) {