MCPcopy Create free account
hub / github.com/SFML/SFML / invalidateMipmap

Method invalidateMipmap

src/SFML/Graphics/Texture.cpp:919–933  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

917
918////////////////////////////////////////////////////////////
919void Texture::invalidateMipmap()
920{
921 if (!m_hasMipmap)
922 return;
923
924 const TransientContextLock lock;
925
926 // Make sure that the current texture binding will be preserved
927 const priv::TextureSaver save;
928
929 glCheck(glBindTexture(GL_TEXTURE_2D, m_texture));
930 glCheck(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_isSmooth ? GL_LINEAR : GL_NEAREST));
931
932 m_hasMipmap = false;
933}
934
935
936////////////////////////////////////////////////////////////

Callers 1

displayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected