aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/sokol_gfx_test.c
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-09-02 14:02:26 +0200
committerAndre Weissflog <floooh@gmail.com>2024-09-02 14:02:26 +0200
commitb90bdaaac01cff5b1d32e0cbfd973438dac4738e (patch)
tree8dcd6001ac7208842c0b19f5841cd3c491da0815 /tests/functional/sokol_gfx_test.c
parent189843bf4f86969ca4cc4b6d94e793a37c5128a7 (diff)
sokol_gfx.h: remove SG_FILTER_NONE (fixes #929)
Diffstat (limited to 'tests/functional/sokol_gfx_test.c')
-rw-r--r--tests/functional/sokol_gfx_test.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/tests/functional/sokol_gfx_test.c b/tests/functional/sokol_gfx_test.c
index 121b3d0f..910d0814 100644
--- a/tests/functional/sokol_gfx_test.c
+++ b/tests/functional/sokol_gfx_test.c
@@ -429,7 +429,7 @@ UTEST(sokol_gfx, make_destroy_samplers) {
T(smpptr->slot.state == SG_RESOURCESTATE_VALID);
T(smpptr->cmn.min_filter == SG_FILTER_NEAREST);
T(smpptr->cmn.mag_filter == SG_FILTER_NEAREST);
- T(smpptr->cmn.mipmap_filter == SG_FILTER_NONE);
+ T(smpptr->cmn.mipmap_filter == SG_FILTER_NEAREST);
T(smpptr->cmn.wrap_u == SG_WRAP_REPEAT);
T(smpptr->cmn.wrap_v == SG_WRAP_REPEAT);
T(smpptr->cmn.wrap_w == SG_WRAP_REPEAT);
@@ -635,7 +635,7 @@ UTEST(sokol_gfx, query_sampler_defaults) {
const sg_sampler_desc desc = sg_query_sampler_defaults(&(sg_sampler_desc){0});
T(desc.min_filter == SG_FILTER_NEAREST);
T(desc.mag_filter == SG_FILTER_NEAREST);
- T(desc.mipmap_filter == SG_FILTER_NONE);
+ T(desc.mipmap_filter == SG_FILTER_NEAREST);
T(desc.wrap_u == SG_WRAP_REPEAT);
T(desc.wrap_v == SG_WRAP_REPEAT);
T(desc.wrap_w == SG_WRAP_REPEAT);
@@ -2151,26 +2151,6 @@ UTEST(sokol_gfx, make_sampler_validate_start_canary) {
sg_shutdown();
}
-UTEST(sokol_gfx, make_sampler_validate_minfilter_none) {
- setup(&(sg_desc){0});
- sg_sampler smp = sg_make_sampler(&(sg_sampler_desc){
- .min_filter = SG_FILTER_NONE,
- });
- T(sg_query_sampler_state(smp) == SG_RESOURCESTATE_FAILED);
- T(log_items[0] == SG_LOGITEM_VALIDATE_SAMPLERDESC_MINFILTER_NONE);
- sg_shutdown();
-}
-
-UTEST(sokol_gfx, make_sampler_validate_magfilter_none) {
- setup(&(sg_desc){0});
- sg_sampler smp = sg_make_sampler(&(sg_sampler_desc){
- .mag_filter = SG_FILTER_NONE,
- });
- T(sg_query_sampler_state(smp) == SG_RESOURCESTATE_FAILED);
- T(log_items[0] == SG_LOGITEM_VALIDATE_SAMPLERDESC_MAGFILTER_NONE);
- sg_shutdown();
-}
-
UTEST(sokol_gfx, make_sampler_validate_anistropic_requires_linear_filtering) {
setup(&(sg_desc){0});
sg_sampler smp;
@@ -2179,7 +2159,7 @@ UTEST(sokol_gfx, make_sampler_validate_anistropic_requires_linear_filtering) {
.max_anisotropy = 2,
.min_filter = SG_FILTER_LINEAR,
.mag_filter = SG_FILTER_LINEAR,
- .mipmap_filter = SG_FILTER_NONE,
+ .mipmap_filter = SG_FILTER_NEAREST,
});
T(sg_query_sampler_state(smp) == SG_RESOURCESTATE_FAILED);
T(log_items[0] == SG_LOGITEM_VALIDATE_SAMPLERDESC_ANISTROPIC_REQUIRES_LINEAR_FILTERING);