mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Ensure that the OpenGL extensions have been loaded
This commit is contained in:
parent
a19f996a11
commit
25920bb6d7
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user