aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-02-28 00:52:17 +0100
committerStapleButter <thetotalworm@gmail.com>2017-02-28 00:52:17 +0100
commite5a4aa7c840e37a0de2bb5dce173449791b43220 (patch)
tree16bc974b4346f179b661f2266cf4a710e6e774ac
parentf16d2aec61efecbc82d516b12ac77a3a0341cf51 (diff)
also keep track of texture attributes
-rw-r--r--GPU3D.cpp3
-rw-r--r--GPU3D.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/GPU3D.cpp b/GPU3D.cpp
index d743819..3c21cfa 100644
--- a/GPU3D.cpp
+++ b/GPU3D.cpp
@@ -751,6 +751,9 @@ void SubmitPolygon()
poly->NumVertices = 0;
poly->Attr = CurPolygonAttr;
+ poly->TexParam = TexParam;
+ poly->TexPalette = TexPalette;
+
poly->FacingView = facingview;
if (LastStripPolygon && clipstart > 0)
diff --git a/GPU3D.h b/GPU3D.h
index 939e3e9..6f9d7d1 100644
--- a/GPU3D.h
+++ b/GPU3D.h
@@ -46,6 +46,8 @@ typedef struct
u32 NumVertices;
u32 Attr;
+ u32 TexParam;
+ u32 TexPalette;
bool FacingView;