aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-06-26 01:18:54 +0200
committerStapleButter <thetotalworm@gmail.com>2017-06-26 01:18:54 +0200
commit155609b6d91a81e70df7ee99de64b8a9d8d847e4 (patch)
treea4e322220e283490d3895e04f7d370f38b1b757c
parent8b262f5ee5909622058172878950ce30b41363ba (diff)
initialize clearZ to 0x7FFF. fixes #38
-rw-r--r--src/GPU3D.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp
index 48bb1ac..f3501b4 100644
--- a/src/GPU3D.cpp
+++ b/src/GPU3D.cpp
@@ -339,8 +339,9 @@ void Reset()
NumVertices = 0;
NumPolygons = 0;
- ClearAttr1 = 0;
- ClearAttr2 = 0;
+ // TODO: confirm initial polyid/color/fog values
+ ClearAttr1 = 0x3F000000;
+ ClearAttr2 = 0x00007FFF;
FlushRequest = 0;
FlushAttributes = 0;