From 25920bb6d70d8b52835129c65a75d4fb6ec939be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Tue, 4 Jul 2023 23:29:10 +0200 Subject: [PATCH] Ensure that the OpenGL extensions have been loaded --- src/SFML/Graphics/Texture.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)); }