|
|
@@ -3186,7 +3186,7 @@ apply_texture(TextureContext *tc) {
|
|
|
#ifndef NDEBUG
|
|
|
// sanity check
|
|
|
extern char *PandaFilterNameStrs[];
|
|
|
- if((!(dtc->_bHasMipMaps))&&(mipfilter!=D3DTEXF_NONE)) {
|
|
|
+ if((!(dtc->_bHasMipMaps))&&(newMipFilter!=D3DTEXF_NONE)) {
|
|
|
dxgsg_cat.error() << "Trying to set mipmap filtering for texture with no generated mipmaps!! texname[" << tex->get_name() << "], filter("<<PandaFilterNameStrs[ft]<<")\n";
|
|
|
newMipFilter=D3DTEXF_NONE;
|
|
|
}
|