Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e00e828f authored by TAVERNIER Vincent's avatar TAVERNIER Vincent
Browse files

Fix mipmap generation

parent 2385c474
No related branches found
No related tags found
No related merge requests found
......@@ -48,5 +48,5 @@ void Texture::Image2D(GLenum target, GLint level, GLint internalFormat, GLsizei
void Texture::GenerateMipmap()
{
glCall(glGenerateMipmap, GLuint(*this));
glCall(glGenerateTextureMipmap, GLuint(*this));
}
......@@ -321,6 +321,7 @@ void TextureEngine::ApplyTextureOptions(const InputConfig &inputConfig, OpenGL::
if (minFilter > GL_LINEAR)
{
BOOST_LOG_TRIVIAL(debug) << "generating mipmaps for " << inputConfig.id;
texture.GenerateMipmap();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment