From 7f1c03fd09d7a3d3d517c414882e42fbb85a08d8 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Thu, 14 Mar 2024 18:12:35 -0500 Subject: [PATCH] support engine selection with print-gl-info argument --- Src/OSD/SDL/Main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp index dc37b669..57154013 100644 --- a/Src/OSD/SDL/Main.cpp +++ b/Src/OSD/SDL/Main.cpp @@ -378,7 +378,7 @@ static void PrintGLInfo(bool createScreen, bool infoLog, bool printExtensions) unsigned xOffset, yOffset, xRes=496, yRes=384, totalXRes, totalYRes; if (createScreen) { - if (OKAY != CreateGLScreen(false, false, "Supermodel - Querying OpenGL Information...", false, &xOffset, &yOffset, &xRes, &yRes, &totalXRes, &totalYRes, false, false)) + if (OKAY != CreateGLScreen(s_runtime_config["New3DEngine"].ValueAs(), s_runtime_config["QuadRendering"].ValueAs(), "Supermodel - Querying OpenGL Information...", false, &xOffset, &yOffset, &xRes, &yRes, &totalXRes, &totalYRes, false, false)) { ErrorLog("Unable to query OpenGL.\n"); return; @@ -1938,6 +1938,7 @@ int main(int argc, char **argv) } if (cmd_line.print_gl_info) { + Util::Config::MergeINISections(&s_runtime_config, DefaultConfig(), cmd_line.config); // We must exit after this because CreateGLScreen() is used PrintGLInfo(true, false, false); return 0;