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
This commit is contained in:
terminx 2019-03-19 17:08:47 +00:00
parent 5e97fc5f51
commit 4522a8902b

View file

@ -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;