From b4a353988d087534dc74e036e66915e49447963f Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 26 Jul 2008 04:16:19 +0000 Subject: [PATCH] Disallow setting rendmode 2... software polymost is so broken that there's not even a point to allowing it anymore git-svn-id: https://svn.eduke32.com/eduke32@907 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/engine.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/polymer/build/src/engine.c b/polymer/build/src/engine.c index e6c50a6ab..67675ae41 100644 --- a/polymer/build/src/engine.c +++ b/polymer/build/src/engine.c @@ -12034,17 +12034,8 @@ int setrendermode(int renderer) { UNREFERENCED_PARAMETER(renderer); #ifdef POLYMOST - if (bpp == 8) - { - if (renderer < 0) renderer = 0; - else if (renderer > 2) renderer = 2; - } - else - { - if (renderer < 3) renderer = 3; - else if (renderer > 4) renderer = 4; - } - + if (bpp == 8) renderer = 0; + else renderer = min(4,max(3,renderer)); # ifdef POLYMER if (renderer == 4) polymer_init();