From f203ca78a2af17efb3942752d32d6889dbf6b585 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 21 Sep 2017 04:32:14 +0000 Subject: [PATCH] Amend r6439 git-svn-id: https://svn.eduke32.com/eduke32@6444 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/sdlayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index 7f99a0754..d9593033e 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -438,7 +438,9 @@ int main(int argc, char *argv[]) if ((argp = Bgetenv("BUILD_NOFOG")) != NULL) nofog = Batol(argp); - putenv("__GL_THREADED_OPTIMIZATIONS=1"); +#ifndef _WIN32 + setenv("__GL_THREADED_OPTIMIZATIONS", "1", 0); +#endif #endif buildkeytranslationtable();