minor bugfix

This commit is contained in:
David Rose 2013-04-18 00:37:57 +00:00
parent 0e41e68d31
commit 5f85e58acd

View File

@ -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());