Do not use texture compression for interface textures. This makes the interface look better and fixes bug #74.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6834 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
652701af56
commit
5f288925db
|
@ -119,8 +119,17 @@ int pie_AddTexPage(iV_Image *s, const char* filename, int slot, int maxTextureSi
|
|||
width, height, GL_UNSIGNED_BYTE, bmp);
|
||||
free(s->bmp);
|
||||
}
|
||||
|
||||
gluBuild2DMipmaps(GL_TEXTURE_2D, wz_texture_compression, width, height, iV_getPixelFormat(s), GL_UNSIGNED_BYTE, bmp);
|
||||
|
||||
if (maxTextureSize)
|
||||
{
|
||||
// this is a 3D texture, use texture compression
|
||||
gluBuild2DMipmaps(GL_TEXTURE_2D, wz_texture_compression, width, height, iV_getPixelFormat(s), GL_UNSIGNED_BYTE, bmp);
|
||||
}
|
||||
else
|
||||
{
|
||||
// this is an interface texture, do not use compression
|
||||
gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, width, height, iV_getPixelFormat(s), GL_UNSIGNED_BYTE, bmp);
|
||||
}
|
||||
} else {
|
||||
debug(LOG_ERROR, "pie_AddTexPage: non POT texture %s", filename);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue