mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 12:49:47 +01:00
rework map rendering
This commit is contained in:
@@ -106,3 +106,10 @@ void Graphics::setViewportSize(const Size& size)
|
||||
m_viewportSize = size;
|
||||
}
|
||||
|
||||
int Graphics::getMaxTextureSize()
|
||||
{
|
||||
static GLint maxTexSize = -1;
|
||||
if(maxTexSize == -1)
|
||||
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTexSize);
|
||||
return maxTexSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user