*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@751 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -107,7 +107,7 @@ GLuint installtex(const char *texname, int &xs, int &ys, bool clamp)
|
||||
};
|
||||
};
|
||||
if(gluBuild2DMipmaps(GL_TEXTURE_2D, mode, xs, ys, mode, GL_UNSIGNED_BYTE, scaledimg)) fatal("could not build mipmaps");
|
||||
if(xs!=s->w) delete[] scaledimg;
|
||||
if(scaledimg != (uchar *)s->pixels) delete[] scaledimg;
|
||||
SDL_FreeSurface(s);
|
||||
return tnum;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user