Only check that DDPF_FOURCC flag is set, not that it's the only flag

This commit is contained in:
baldurk
2015-09-13 14:06:13 +02:00
parent a01b3badfa
commit 5fccf87d43
+1 -1
View File
@@ -925,7 +925,7 @@ dds_data load_dds_from_file(FILE *f)
return error;
}
}
else if(header.ddspf.dwFlags == DDPF_FOURCC)
else if(header.ddspf.dwFlags & DDPF_FOURCC)
{
switch(header.ddspf.dwFourCC)
{