mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix dxt rgba setting
This commit is contained in:
parent
790e3f5f97
commit
7db5f2c148
@ -948,9 +948,9 @@ read_dds(istream &in, const string &filename, bool header_only) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (header.pf.pf_flags & DDPF_ALPHAPIXELS) {
|
// All of the compressed formats support alpha, even DXT1 (to some
|
||||||
format = F_rgba;
|
// extent, at least).
|
||||||
}
|
format = F_rgba;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// An uncompressed texture format.
|
// An uncompressed texture format.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user