From 155609b6d91a81e70df7ee99de64b8a9d8d847e4 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Mon, 26 Jun 2017 01:18:54 +0200 Subject: [PATCH] initialize clearZ to 0x7FFF. fixes #38 --- src/GPU3D.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 48bb1ac4..f3501b4d 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;