summaryrefslogtreecommitdiff
path: root/NW4RTools/Texture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'NW4RTools/Texture.cs')
-rw-r--r--NW4RTools/Texture.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NW4RTools/Texture.cs b/NW4RTools/Texture.cs
index 3dadce8..e45555d 100644
--- a/NW4RTools/Texture.cs
+++ b/NW4RTools/Texture.cs
@@ -236,7 +236,7 @@ namespace NW4RTools {
for (int x = 0; x < width; x += 8) {
for (int iBlockY = 0; iBlockY < 2; iBlockY++) {
for (int iBlockX = 0; iBlockX < 2; iBlockX++) {
- var block = Util.NVDXT.compressDXT1a(bits.Scan0,
+ var block = Util.NVDXT.compressDXT1a((Util.NVDXT.ARGBPixel*)bits.Scan0,
x + (iBlockX * 4), y + (iBlockY * 4),
bits.Stride, bits.Height);