*** 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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user