there's no need to reset the image data

This commit is contained in:
Konstantin Käfer
2014-05-02 10:25:06 +02:00
parent e56a8113e7
commit 4ac34b49a0

View File

@@ -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)