From 4522a8902b4925f217d6144751aad024c146d8c6 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 19 Mar 2019 17:08:47 +0000 Subject: [PATCH] Limit Polymost tile sheet size to 8192 when building with MSVC git-svn-id: https://svn.eduke32.com/eduke32@7414 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 09d3cbd17..f216cf7d4 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -939,6 +939,10 @@ void polymost_glinit() currentTextureID = 0; glGetIntegerv(GL_MAX_TEXTURE_SIZE, &tilesheetSize); +#ifdef _MSC_VER + if (tilesheetSize > 8192) + tilesheetSize = 8192; +#endif tilesheetHalfTexelSize = { 0.5f/tilesheetSize, 0.5f/tilesheetSize }; vec2_t maxTexDimensions = { tilesheetSize, tilesheetSize }; char allPacked = false;