Browse Source

minor bugfix

David Rose 12 years ago
parent
commit
5f85e58acd
1 changed files with 4 additions and 3 deletions
  1. 4 3
      pandatool/src/pfmprogs/pfmTrans.cxx

+ 4 - 3
pandatool/src/pfmprogs/pfmTrans.cxx

@@ -227,10 +227,11 @@ process_pfm(const Filename &input_filename, PfmFile &file) {
       if (tex == NULL) {
         nout << "Couldn't find " << _vistex_filename << "\n";
       } else {
+        tex->set_minfilter(Texture::FT_linear_mipmap_linear);
         mesh.set_texture(tex);
-      }
-      if (tex->has_alpha(tex->get_format())) {
-        mesh.set_transparency(TransparencyAttrib::M_dual);
+        if (tex->has_alpha(tex->get_format())) {
+          mesh.set_transparency(TransparencyAttrib::M_dual);
+        }
       }
     }
     mesh.set_name(input_filename.get_basename_wo_extension());