mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
5e97fc5f51
commit
4522a8902b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue