mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
don't enable mipmaps for dynamic textures
This commit is contained in:
parent
1a6e7ff58b
commit
60193c50ae
@ -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[];
|
||||||
|
@ -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[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user