Sanity check MSAA

This commit is contained in:
Agent X 2024-07-18 14:42:53 -04:00
parent 5ba48c0329
commit 627ea49c14

View file

@ -6,6 +6,7 @@
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include "pc_main.h"
#include "platform.h" #include "platform.h"
#include "configfile.h" #include "configfile.h"
#include "cliopts.h" #include "cliopts.h"
@ -683,6 +684,8 @@ NEXT_OPTION:
fs_close(file); fs_close(file);
if ((int)configWindow.msaa > WAPI.get_max_msaa()) { configWindow.msaa = WAPI.get_max_msaa(); }
if (configFrameLimit < 30) { configFrameLimit = 30; } if (configFrameLimit < 30) { configFrameLimit = 30; }
if (configFrameLimit > 3000) { configFrameLimit = 3000; } if (configFrameLimit > 3000) { configFrameLimit = 3000; }