From 1a58d8c31756fc986b993046d707d97168648510 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 26 May 2011 00:20:24 +0200 Subject: yay, a bug in display lists! --- NW4RTools/ObjImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NW4RTools/ObjImporter.cs') 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(); -- cgit v1.2.3