From c3ecd9c729664d6642ec89b938633f09038bf5c2 Mon Sep 17 00:00:00 2001 From: ketmar Date: Mon, 3 Sep 2018 05:05:57 +0000 Subject: [PATCH] autoactivate loser gpu mode if necessary FossilOrigin-Name: a48b0df6da36608bdc12da5ca7223d4ffd42deda10c271bd32e5ed8151753bf8 --- spelunky_main.vc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spelunky_main.vc b/spelunky_main.vc index 8eb5b1c..4df477c 100644 --- a/spelunky_main.vc +++ b/spelunky_main.vc @@ -2125,10 +2125,16 @@ void initializeVideo () { Video.closeScreen(); FatalError("=== YOUR GPU SUX! ===\nno stencil buffer!"); } + /* if (!loserGPU && !Video.framebufferHasAlpha) { Video.closeScreen(); FatalError("=== YOUR GPU SUX! ===\nno alpha channel in framebuffer!\nRun the game with \"--loser-gpu\" arg if you still want to play."); } + */ + if (!Video.framebufferHasAlpha) { + loserGPU = true; + if (level) level.loserGPU = true; + } /* if (!Video.glHasNPOT) { Video.closeScreen(); -- 2.11.4.GIT