diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-12-05 09:44:52 +0000 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-12-05 09:44:52 +0000 |
commit | 8842c2353d673b45d34c163e444d6ecd068d255c (patch) | |
tree | 5a5fd9b734435c1de4d9ba6c016e491ddb0d3241 /glretrace_main.cpp | |
parent | e147b61b3e822cf6b2d81f8a62ae7d0ddec81815 (diff) |
Add option to request an Opengl 3.2 core profile context.
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")) { |