summaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/s3tc-dxt-decompression
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-10-19 12:05:15 -0400
committerAndrew Opalach <andrew@akon.city> 2024-10-19 12:13:26 -0400
commit42e8c4d28b6fe9cc5e041f02e0c85b390d49a218 (patch)
tree59080eec3dd79d225bb31fb0f7e646cc22880d39 /subprojects/packagefiles/s3tc-dxt-decompression
parent2bb807dd32e1c18a6f1e8f22c25141de3334de9f (diff)
downloadmauri-42e8c4d28b6fe9cc5e041f02e0c85b390d49a218.tar.gz
mauri-42e8c4d28b6fe9cc5e041f02e0c85b390d49a218.tar.bz2
mauri-42e8c4d28b6fe9cc5e041f02e0c85b390d49a218.zip
Attempt to make usable and packageable
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'subprojects/packagefiles/s3tc-dxt-decompression')
-rw-r--r--subprojects/packagefiles/s3tc-dxt-decompression/dxt1_default_alpha.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/subprojects/packagefiles/s3tc-dxt-decompression/dxt1_default_alpha.diff b/subprojects/packagefiles/s3tc-dxt-decompression/dxt1_default_alpha.diff
new file mode 100644
index 0000000..8527f9b
--- /dev/null
+++ b/subprojects/packagefiles/s3tc-dxt-decompression/dxt1_default_alpha.diff
@@ -0,0 +1,13 @@
+diff --git a/s3tc.cpp b/s3tc.cpp
+index f2642fc..88ea870 100644
+--- a/s3tc.cpp
++++ b/s3tc.cpp
+@@ -83,7 +83,7 @@ void DecompressBlockDXT1(uint32_t x, uint32_t y, uint32_t width, const uint8_t *
+ finalColor = PackRGBA((r0+r1)/2, (g0+g1)/2, (b0+b1)/2, 255);
+ break;
+ case 3:
+- finalColor = PackRGBA(0, 0, 0, 255);
++ finalColor = PackRGBA(0, 0, 0, 0);
+ break;
+ }
+ }