From 4ac34b49a050c8c50006966d78566178d39e63e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Fri, 2 May 2014 10:25:06 +0200 Subject: [PATCH] there's no need to reset the image data --- src/util/texturepool.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/util/texturepool.cpp b/src/util/texturepool.cpp index c0857caa4..7b211c453 100644 --- a/src/util/texturepool.cpp +++ b/src/util/texturepool.cpp @@ -30,9 +30,6 @@ GLuint Texturepool::getTextureID() { void Texturepool::removeTextureID(GLuint texture_id) { bool needs_clear = false; - glBindTexture(GL_TEXTURE_2D, texture_id); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); - texture_ids.insert(texture_id); if (texture_ids.size() > TextureMax)