*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@752 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-29 22:59:33 +00:00
parent c1560ad445
commit 50a97671ab
+3 -1
View File
@@ -104,10 +104,12 @@ GLuint installtex(const char *texname, int &xs, int &ys, bool clamp)
{
xs = s->w;
ys = s->h;
delete[] scaledimg;
scaledimg = (uchar *)s->pixels;
};
};
if(gluBuild2DMipmaps(GL_TEXTURE_2D, mode, xs, ys, mode, GL_UNSIGNED_BYTE, scaledimg)) fatal("could not build mipmaps");
if(scaledimg != (uchar *)s->pixels) delete[] scaledimg;
if(xs!=s->w) delete[] scaledimg;
SDL_FreeSurface(s);
return tnum;
};