From f1f3fd2696500bf569ea0543a2161d4c0e1fcc91 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 Jul 2011 19:57:11 +0300 Subject: Remove old comments from image.cpp --- src/resources/image.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/resources') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 876e64af4..e39eb1edc 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -166,7 +166,8 @@ Resource *Image::load(void *buffer, unsigned bufferSize, Dye const &dye) for (Uint32 *p_end = pixels + surf->w * surf->h; pixels != p_end; ++pixels) { int alpha = *pixels & 255; - if (!alpha) continue; + if (!alpha) + continue; int v[3]; v[0] = (*pixels >> 24) & 255; v[1] = (*pixels >> 16) & 255; @@ -758,15 +759,13 @@ Image *Image::_GLload(SDL_Surface *tmpImage) if (mUseOpenGL == 1) OpenGLGraphics::bindTexture(mTextureType, texture); else if (mUseOpenGL == 2) -// glBindTexture(mTextureType, texture); OpenGL1Graphics::bindTexture(mTextureType, texture); if (SDL_MUSTLOCK(tmpImage)) SDL_LockSurface(tmpImage); -// glTexImage2D(mTextureType, 0, GL_COMPRESSED_RGBA_ARB, tmpImage->w, tmpImage->h, glTexImage2D(mTextureType, 0, 4, tmpImage->w, tmpImage->h, - 0, GL_RGBA, GL_UNSIGNED_BYTE, tmpImage->pixels); + 0, GL_RGBA, GL_UNSIGNED_BYTE, tmpImage->pixels); #ifdef DEBUG_OPENGL_LEAKS textures_count ++; -- cgit v1.2.3-70-g09d2