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);