This commit is contained in:
MihailRis
2024-01-22 22:04:33 +03:00
parent 5c36f59b4f
commit b4bf0dd0f7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ void TextureAnimator::update(float delta) {
GL_COLOR_BUFFER_BIT, GL_NEAREST);
}
}
frameBuffer->unbind();
for (auto& elem : changedTextures) {
glBindTexture(GL_TEXTURE_2D, elem);
glGenerateMipmap(GL_TEXTURE_2D);