don't enable mipmaps for dynamic textures

This commit is contained in:
David Rose 2004-12-11 16:39:28 +00:00
parent 1a6e7ff58b
commit 60193c50ae
2 changed files with 155 additions and 141 deletions

View File

@ -3092,6 +3092,13 @@ apply_texture(TextureContext *tc) {
D3DTEXTUREFILTERTYPE newMipFilter = PandaToD3DMipType[(DWORD)ft]; D3DTEXTUREFILTERTYPE newMipFilter = PandaToD3DMipType[(DWORD)ft];
if (!tex->might_have_ram_image()) {
// If the texture is completely dynamic, don't try to issue
// mipmaps--pandadx doesn't support auto-generated mipmaps at this
// point.
newMipFilter = D3DTEXF_NONE;
}
#ifndef NDEBUG #ifndef NDEBUG
// sanity check // sanity check
extern char *PandaFilterNameStrs[]; extern char *PandaFilterNameStrs[];

View File

@ -3089,6 +3089,13 @@ apply_texture(TextureContext *tc) {
D3DTEXTUREFILTERTYPE newMipFilter = PandaToD3DMipType[(DWORD)ft]; D3DTEXTUREFILTERTYPE newMipFilter = PandaToD3DMipType[(DWORD)ft];
if (!tex->might_have_ram_image()) {
// If the texture is completely dynamic, don't try to issue
// mipmaps--pandadx doesn't support auto-generated mipmaps at this
// point.
newMipFilter = D3DTEXF_NONE;
}
#ifndef NDEBUG #ifndef NDEBUG
// sanity check // sanity check
extern char *PandaFilterNameStrs[]; extern char *PandaFilterNameStrs[];