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;
|
TransientContextLock transientLock;
|
||||||
|
|
||||||
|
// Make sure that extensions are initialized
|
||||||
|
sf::priv::ensureExtensionsInit();
|
||||||
|
|
||||||
glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size));
|
glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user