diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp index ae1883e25..9ba6eeb57 100644 --- a/src/SFML/Graphics/Texture.cpp +++ b/src/SFML/Graphics/Texture.cpp @@ -806,6 +806,9 @@ unsigned int Texture::getMaximumSize() TransientContextLock transientLock; + // Make sure that extensions are initialized + sf::priv::ensureExtensionsInit(); + glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size)); }