Ensure that the OpenGL extensions have been loaded

This commit is contained in:
Lukas Dürrenberger 2023-07-04 23:29:10 +02:00
parent a19f996a11
commit 25920bb6d7

View File

@ -806,6 +806,9 @@ unsigned int Texture::getMaximumSize()
TransientContextLock transientLock; TransientContextLock transientLock;
// Make sure that extensions are initialized
sf::priv::ensureExtensionsInit();
glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size)); glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size));
} }