Skip to content

Commit

Permalink
Ensure that the OpenGL extensions have been loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
eXpl0it3r committed Jul 4, 2023
1 parent a19f996 commit 25920bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SFML/Graphics/Texture.cpp
Expand Up @@ -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));
}

Expand Down

0 comments on commit 25920bb

Please sign in to comment.