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