X-Git-Url: https://git.cworth.org/git?p=glenv;a=blobdiff_plain;f=glenv.c;h=6d27ad4bf402b6d380d619bb9730b50443714c76;hp=824b8b8bfaf697a3131added5ca149c2a1fbbaf3;hb=455de90fada991ed423c5cd4f20269fc63653d90;hpb=206fae5fae316c85de55e636c1f7d04b8cdc9193 diff --git a/glenv.c b/glenv.c index 824b8b8..6d27ad4 100644 --- a/glenv.c +++ b/glenv.c @@ -41,10 +41,9 @@ typedef struct options { static void export_options (options_t *options) { - if (options->query) - setenv ("GLENV_QUERY", "1", 1); - else - unsetenv ("GLENV_QUERY"); + if (options->query) { + glaze_set_first_gl_call_callback ("glenv_query"); + } if (options->vendor) setenv ("GLENV_GL_VENDOR", options->vendor, 1);