From 4ae5f2e298c41ff0cf8aeba567b55a6acba825db Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 23 Jun 2017 03:58:36 +0000 Subject: [PATCH] Remove "BUILD_NOP6", old cruft for running on ancient x86 processors without MMX. git-svn-id: https://svn.eduke32.com/eduke32@6229 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/a-c.cpp | 2 -- source/build/src/engine.cpp | 12 ++++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/source/build/src/a-c.cpp b/source/build/src/a-c.cpp index 8df96c7ab..d3b1fe393 100644 --- a/source/build/src/a-c.cpp +++ b/source/build/src/a-c.cpp @@ -718,8 +718,6 @@ void stretchhline(intptr_t p0, int32_t u, bssize_t cnt, int32_t uinc, intptr_t r } #endif -void mmxoverlay() { } - #endif /* * vim:ts=4: diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index f74a8b686..0ab314bca 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -124,7 +124,7 @@ static const int32_t nytoofar = DISTRECIPSIZ*16384ull - 1048576; static uint32_t *distrecip; static int32_t *lookups = NULL; -static int32_t dommxoverlay = 1, beforedrawrooms = 1; +static int32_t beforedrawrooms = 1; static int32_t oxdimen = -1, oviewingrange = -1, oxyaspect = -1; @@ -7651,13 +7651,9 @@ int32_t preinitengine(void) spritesmooth = spritesmooth_s; #endif - if ((e = Bgetenv("BUILD_NOP6")) != NULL) - if (!Bstrcasecmp(e, "TRUE")) - { - Bprintf("Disabling P6 optimizations.\n"); - dommxoverlay = 0; - } - if (dommxoverlay) mmxoverlay(); +#if !defined ENGINE_USING_A_C + mmxoverlay(); +#endif validmodecnt = 0; getvalidmodes();