David Rose 23 лет назад
Родитель
Сommit
768a400bf1

+ 2 - 2
panda/src/dxgsg/dxGraphicsStateGuardian.cxx

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

+ 1 - 1
panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx

@@ -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;
     }