diff options
Diffstat (limited to 'glretrace_main.cpp')
-rw-r--r-- | glretrace_main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glretrace_main.cpp b/glretrace_main.cpp index 3c010d28..3bf9de89 100644 --- a/glretrace_main.cpp +++ b/glretrace_main.cpp @@ -39,6 +39,7 @@ namespace glretrace { bool double_buffer = true; bool insideGlBeginEnd = false; trace::Parser parser; +glws::Profile defaultProfile = glws::PROFILE_COMPAT; glws::Visual *visual = NULL; glws::Drawable *drawable = NULL; glws::Context *context = NULL; @@ -248,6 +249,7 @@ static void usage(void) { "\n" " -b benchmark mode (no error checking or warning messages)\n" " -c PREFIX compare against snapshots\n" + " -core use core profile\n" " -db use a double buffer visual (default)\n" " -sb use a single buffer visual\n" " -s PREFIX take snapshots; `-` for PNM stdout output\n" @@ -283,6 +285,8 @@ int main(int argc, char **argv) } else if (!strcmp(arg, "-D")) { dump_state = atoi(argv[++i]); retrace::verbosity = -2; + } else if (!strcmp(arg, "-core")) { + defaultProfile = glws::PROFILE_CORE; } else if (!strcmp(arg, "-db")) { double_buffer = true; } else if (!strcmp(arg, "-sb")) { |