]> git.cworth.org Git - vogl/blobdiff - src/voglbench/voglbench.cpp
- Adding "-msaa X" command line option to voglreplay tool. We don't fully support...
[vogl] / src / voglbench / voglbench.cpp
index a7fdad1828a8f1296af2619461a4813eba4cc7b2..92971af602f1ef8ea2d8e03725d2ca917fba58b2 100644 (file)
@@ -70,6 +70,7 @@ static command_line_param_desc g_command_line_param_descs[] =
     {
         { "width", 1, false, "Replay: Set initial window width (default is 1024)" },
         { "height", 1, false, "Replay: Set initial window height (default is 768)" },
+        { "msaa", 1, false, "Replay: Set initial window multisamples (default is 0)" },
         { "lock_window_dimensions", 0, false, "Replay: Don't automatically change window's dimensions during replay" },
         { "endless", 0, false, "Replay: Loop replay endlessly instead of exiting" },
         { "force_debug_context", 0, false, "Replay: Force GL debug contexts" },
@@ -397,7 +398,7 @@ static bool tool_replay_mode()
     // TODO: This will create a window with default attributes, which seems fine for the majority of traces.
     // Unfortunately, some GL call streams *don't* want an alpha channel, or depth, or stencil etc. in the default framebuffer so this may become a problem.
     // Also, this design only supports a single window, which is going to be a problem with multiple window traces.
-    if (!window.open(g_command_line_params.get_value_as_int("width", 0, 1024, 1, 65535), g_command_line_params.get_value_as_int("height", 0, 768, 1, 65535)))
+    if (!window.open(g_command_line_params.get_value_as_int("width", 0, 1024, 1, 65535), g_command_line_params.get_value_as_int("height", 0, 768, 1, 65535), g_command_line_params.get_value_as_int("msaa", 0, 0, 0, 65535)))
     {
         vogl_error_printf("%s: Failed initializing replay window\n", VOGL_FUNCTION_NAME);
         return false;