*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@86 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -78,7 +78,7 @@ bool installtex(int tnum, char *texname, int &xs, int &ys, bool clamp, bool high
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, clamp ? GL_CLAMP_TO_EDGE : GL_REPEAT);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, clamp ? GL_CLAMP_TO_EDGE : GL_REPEAT);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); //NEAREST);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, highqual ? GL_LINEAR : GL_LINEAR_MIPMAP_LINEAR); //NEAREST);
|
||||
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
xs = s->w;
|
||||
ys = s->h;
|
||||
|
||||
@@ -307,7 +307,8 @@ void md3skin(char *objname, char *skin) // called by the {lower|upper|head}.cfg
|
||||
{
|
||||
int xs, ys;
|
||||
sprintf_sd(path)("%s/%s", basedir, skin); // 'skin' is a relative url
|
||||
installtex(FIRSTMD3 + numskins, path, xs, ys, true);
|
||||
bool highqual = strstr(basedir, "weapons") != NULL;
|
||||
installtex(FIRSTMD3 + numskins, path, xs, ys, true, highqual);
|
||||
mesh->tex = numskins;
|
||||
numskins++;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user