summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-20 19:57:11 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-20 19:57:11 +0300
commitf1f3fd2696500bf569ea0543a2161d4c0e1fcc91 (patch)
tree79e479e74aba3c5c7e2435ce521ac33fef93759c /src/resources/image.cpp
parent0ba6ef14054e096b1d94604310e445fb4e78bb82 (diff)
downloadmv-f1f3fd2696500bf569ea0543a2161d4c0e1fcc91.tar.gz
mv-f1f3fd2696500bf569ea0543a2161d4c0e1fcc91.tar.bz2
mv-f1f3fd2696500bf569ea0543a2161d4c0e1fcc91.tar.xz
mv-f1f3fd2696500bf569ea0543a2161d4c0e1fcc91.zip
Remove old comments from image.cpp
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp7
1 files changed, 3 insertions, 4 deletions
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 ++;