aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/sokol_gfx_test.c
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-06-02 18:02:56 +0200
committerAndre Weissflog <floooh@gmail.com>2025-06-02 18:02:56 +0200
commit4ad872d3b2bf5158f872005194e2d17f2ec38ea1 (patch)
tree05eb0fbde8b74b0d4c70bdeee06de5d923a4466b /tests/functional/sokol_gfx_test.c
parent9ef57401088a6dec556843148736cc0ea4028ffb (diff)
sokol_gfx.h: fix dummy backend and tests
Diffstat (limited to 'tests/functional/sokol_gfx_test.c')
-rw-r--r--tests/functional/sokol_gfx_test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/functional/sokol_gfx_test.c b/tests/functional/sokol_gfx_test.c
index 8e5383f8..a44a3060 100644
--- a/tests/functional/sokol_gfx_test.c
+++ b/tests/functional/sokol_gfx_test.c
@@ -511,8 +511,7 @@ UTEST(sokol_gfx, make_destroy_pipelines) {
T(pipptr);
T(pipptr->slot.id == pip[i].id);
T(pipptr->slot.state == SG_RESOURCESTATE_VALID);
- T(pipptr->shader == _sg_lookup_shader(desc.shader.id));
- T(pipptr->cmn.shader_id.id == desc.shader.id);
+ T(pipptr->cmn.shader.sref.id == desc.shader.id);
T(pipptr->cmn.color_count == 1);
T(pipptr->cmn.colors[0].pixel_format == SG_PIXELFORMAT_RGBA8);
T(pipptr->cmn.depth.pixel_format == SG_PIXELFORMAT_DEPTH_STENCIL);
@@ -563,9 +562,9 @@ UTEST(sokol_gfx, make_destroy_attachments) {
T(attsptr->slot.state == SG_RESOURCESTATE_VALID);
T(attsptr->cmn.num_colors == 3);
for (int ai = 0; ai < 3; ai++) {
- const _sg_image_t* img = _sg_attachments_color_image(attsptr, ai);
+ const _sg_image_t* img = _sg_image_ref_ptr(&attsptr->cmn.colors[ai].image);
T(img == _sg_lookup_image(atts_desc.colors[ai].image.id));
- T(attsptr->cmn.colors[ai].image_id.id == atts_desc.colors[ai].image.id);
+ T(attsptr->cmn.colors[ai].image.sref.id == atts_desc.colors[ai].image.id);
}
}
/* trying to create another one fails because pool is exhausted */