aboutsummaryrefslogtreecommitdiffstats
path: root/test/pugl_gl3_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-11-18 13:25:38 +0100
committerDavid Robillard <d@drobilla.net>2019-11-18 19:33:16 +0100
commite9ae30eaa96df7deed014bba00bf999d8b43aa8d (patch)
tree80ab413a5211323a09fe4f17e9b6df34921d30fe /test/pugl_gl3_test.c
parent077b31875b5fdd0d6f299c8834b8a626e263c099 (diff)
downloadpugl-e9ae30eaa96df7deed014bba00bf999d8b43aa8d.tar.gz
pugl-e9ae30eaa96df7deed014bba00bf999d8b43aa8d.tar.bz2
pugl-e9ae30eaa96df7deed014bba00bf999d8b43aa8d.zip
Add error checking option to test programs
Diffstat (limited to 'test/pugl_gl3_test.c')
-rw-r--r--test/pugl_gl3_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pugl_gl3_test.c b/test/pugl_gl3_test.c
index 170f969..06e816c 100644
--- a/test/pugl_gl3_test.c
+++ b/test/pugl_gl3_test.c
@@ -302,6 +302,7 @@ main(int argc, char** argv)
puglSetAspectRatio(app.view, 1, 1, 16, 9);
puglSetBackend(app.view, puglGlBackend());
puglSetViewHint(app.view, PUGL_USE_COMPAT_PROFILE, PUGL_FALSE);
+ puglSetViewHint(app.view, PUGL_USE_DEBUG_CONTEXT, app.opts.errorChecking);
puglSetViewHint(app.view, PUGL_CONTEXT_VERSION_MAJOR, 3);
puglSetViewHint(app.view, PUGL_CONTEXT_VERSION_MINOR, 3);
puglSetViewHint(app.view, PUGL_RESIZABLE, app.opts.resizable);