From 627ea49c14c49d1f63107f08929ecf71d73183fb Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:42:53 -0400 Subject: [PATCH] Sanity check MSAA --- src/pc/configfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pc/configfile.c b/src/pc/configfile.c index e661662b..27e19b94 100644 --- a/src/pc/configfile.c +++ b/src/pc/configfile.c @@ -6,6 +6,7 @@ #include #include +#include "pc_main.h" #include "platform.h" #include "configfile.h" #include "cliopts.h" @@ -683,6 +684,8 @@ NEXT_OPTION: fs_close(file); + if ((int)configWindow.msaa > WAPI.get_max_msaa()) { configWindow.msaa = WAPI.get_max_msaa(); } + if (configFrameLimit < 30) { configFrameLimit = 30; } if (configFrameLimit > 3000) { configFrameLimit = 3000; }