From da01fb30b69a7bfde9f35931b2646fce77201fb6 Mon Sep 17 00:00:00 2001 From: Stefano Musumeci Date: Thu, 7 Aug 2014 21:49:36 +0200 Subject: [PATCH] TINYGL: removed commented out --- graphics/tinygl/texture.cpp | 1 - graphics/tinygl/zblit.cpp | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/graphics/tinygl/texture.cpp b/graphics/tinygl/texture.cpp index e265eb6a051..8f928e5081f 100644 --- a/graphics/tinygl/texture.cpp +++ b/graphics/tinygl/texture.cpp @@ -262,7 +262,6 @@ void tglDeleteTextures(int n, const unsigned int *textures) { tglBindTexture(TGL_TEXTURE_2D, 0); } t->disposed = true; - //TinyGL::free_texture(c, textures[i]); } } } diff --git a/graphics/tinygl/zblit.cpp b/graphics/tinygl/zblit.cpp index 07163bcc417..54ef4910244 100644 --- a/graphics/tinygl/zblit.cpp +++ b/graphics/tinygl/zblit.cpp @@ -246,17 +246,6 @@ void tglUploadBlitImage(BlitImage *blitImage, const Graphics::Surface& surface, void tglDeleteBlitImage(BlitImage *blitImage) { blitImage->_isDisposed = true; - /* - if (blitImage != nullptr) { - TinyGL::GLContext *c = TinyGL::gl_get_context(); - for (uint32 i = 0; i < c->blitImages.size(); i++) { - if (c->blitImages[i] == blitImage) { - c->blitImages.remove_at(i); - break; - } - } - delete blitImage; - }*/ } template