Remove unsupported renderer warnings, they do nothing.

This commit is contained in:
Mari the Deer 2022-06-11 12:29:28 +02:00
commit a30916a58a
2 changed files with 3 additions and 20 deletions

View file

@ -167,24 +167,7 @@ Class SWWMStaticHandler : StaticEventHandler
override void RenderOverlay( RenderEvent e )
{
// warn on use of incorrect render settings
// make sure to find the cvars, rather than use them directly
// just in case anything changes in the future and we end up
// breaking shit (not the first time a mod does that)
int yy = 8;
let backend = CVar.FindCVar('vid_preferbackend');
let rmode = CVar.FindCVar('vid_rendermode');
if ( backend && (backend.GetInt() > 1) )
{
String str = "UNSUPPORTED VIDEO BACKEND - PLEASE SWITCH TO OPENGL OR VULKAN";
Screen.DrawText(newsmallfont,Font.CR_RED,(Screen.GetWidth()-newsmallfont.StringWidth(str)*CleanXFac_1)/2,yy,str,DTA_CleanNoMove_1,true);
yy += 16*CleanYFac_1;
}
if ( rmode && (rmode.GetInt() != 4) )
{
String str = "UNSUPPORTED RENDER MODE - PLEASE SWITCH TO HARDWARE RENDERING";
Screen.DrawText(newsmallfont,Font.CR_RED,(Screen.GetWidth()-newsmallfont.StringWidth(str)*CleanXFac_1)/2,yy,str,DTA_CleanNoMove_1,true);
}
// silly april fools thing
if ( (aprcheck == 2) && (gamestate == GS_LEVEL) )
{
String str = "Unregistered Ultracam";