aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_gl_hints.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-10 09:25:23 -0400
committerDavid Robillard <d@drobilla.net>2024-06-10 09:31:17 -0400
commit55245b99cc4e7992f34244b773eeb510f3af8904 (patch)
treeaa00d32ab8816912bb5755bf4b6aef6219984c65 /test/test_gl_hints.c
parentc46b41787cac270638ef7151782357636cf1be77 (diff)
downloadpugl-main.tar.gz
pugl-main.tar.bz2
pugl-main.zip
Fix build and tests with optional X11 features disabledHEADmain
Diffstat (limited to 'test/test_gl_hints.c')
-rw-r--r--test/test_gl_hints.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_gl_hints.c b/test/test_gl_hints.c
index 16b51c5..250136a 100644
--- a/test/test_gl_hints.c
+++ b/test/test_gl_hints.c
@@ -85,7 +85,8 @@ main(void)
assert(puglGetViewHint(view, PUGL_SWAP_INTERVAL) != PUGL_DONT_CARE);
assert(puglGetViewHint(view, PUGL_RESIZABLE) != PUGL_DONT_CARE);
assert(puglGetViewHint(view, PUGL_IGNORE_KEY_REPEAT) != PUGL_DONT_CARE);
- assert(puglGetViewHint(view, PUGL_REFRESH_RATE) != PUGL_DONT_CARE);
+ assert(puglGetViewHint(view, PUGL_REFRESH_RATE) == PUGL_DONT_CARE ||
+ puglGetViewHint(view, PUGL_REFRESH_RATE) > 0);
// Tear down
puglFreeView(view);