瀏覽代碼

fix dxt rgba setting

David Rose 17 年之前
父節點
當前提交
7db5f2c148
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      panda/src/gobj/texture.cxx

+ 3 - 3
panda/src/gobj/texture.cxx

@@ -948,9 +948,9 @@ read_dds(istream &in, const string &filename, bool header_only) {
       return false;
     }
 
-    if (header.pf.pf_flags & DDPF_ALPHAPIXELS) {
-      format = F_rgba;
-    }
+    // All of the compressed formats support alpha, even DXT1 (to some
+    // extent, at least).
+    format = F_rgba;
 
   } else {
     // An uncompressed texture format.