summaryrefslogtreecommitdiff
path: root/NW4RTools
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-05-26 00:20:24 +0200
committerTreeki <treeki@gmail.com>2011-05-26 00:20:24 +0200
commit1a58d8c31756fc986b993046d707d97168648510 (patch)
tree164feeb25dd633aa7a125194c83568f81b2ce51a /NW4RTools
parentd3f7d43d9cf8a3126d5b1cbbd0c10fc96c5d6053 (diff)
downloadnw4rtools-1a58d8c31756fc986b993046d707d97168648510.tar.gz
nw4rtools-1a58d8c31756fc986b993046d707d97168648510.zip
yay, a bug in display lists!
Diffstat (limited to 'NW4RTools')
-rwxr-xr-xNW4RTools/ObjImporter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NW4RTools/ObjImporter.cs b/NW4RTools/ObjImporter.cs
index 1e36983..384fb66 100755
--- a/NW4RTools/ObjImporter.cs
+++ b/NW4RTools/ObjImporter.cs
@@ -377,7 +377,7 @@ namespace NW4RTools {
var texCoordGenDL = new DisplayListWriter();
texCoordGenDL.LoadXFReg(0x1040, new byte[] { 0x00, 0x00, 0x52, 0x80 });
texCoordGenDL.LoadXFReg(0x1050, new byte[] { 0x00, 0x00, 0x00, 0x00 });
- texCoordGenDL.AddPadding(110);
+ texCoordGenDL.PadToSize(0xA0);
texCoordGenDL.End();
currentMaterial.TexCoordGenDL = texCoordGenDL.GetBuffer();