diff --git a/source/creator/creator.cc b/source/creator/creator.cc index 8b156720bfb..227908fede0 100644 --- a/source/creator/creator.cc +++ b/source/creator/creator.cc @@ -14,10 +14,6 @@ # include #endif -#ifdef __linux__ -# include -#endif - #if defined(WITH_TBB_MALLOC) && defined(_MSC_VER) && defined(NDEBUG) # pragma comment(lib, "tbbmalloc_proxy.lib") # pragma comment(linker, "/include:__TBB_malloc_proxy") @@ -29,7 +25,6 @@ #include "DNA_genfile.h" -#include "BLI_path_util.h" #include "BLI_string.h" #include "BLI_system.h" #include "BLI_task.h" @@ -334,19 +329,6 @@ int main(int argc, # endif /* USE_WIN32_UNICODE_ARGS */ #endif /* WIN32 */ -/* Here we check for Windows ARM64 or WSL, and override the Mesa reported OpenGL version */ -#if defined(WIN32) || defined(__linux__) -# if defined(WIN32) - if (strncmp(BLI_getenv("PROCESSOR_IDENTIFIER"), "ARM", 3) == 0) -# else /* Must be linux, so check if we're in WSL */ - if (access("/proc/sys/fs/binfmt_misc/WSLInterop", F_OK) == 0) -# endif - { - BLI_setenv_if_new("MESA_GLSL_VERSION_OVERRIDE", "430"); - BLI_setenv_if_new("MESA_GL_VERSION_OVERRIDE", "4.3"); - } -#endif - /* NOTE: Special exception for guarded allocator type switch: * we need to perform switch from lock-free to fully * guarded allocator before any allocation happened.