From 05db81b92f30484a536990a6b792166102405c51 Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 21 Feb 2023 01:24:42 +0100 Subject: [PATCH] small changes --- src/base.cpp | 2 ++ src/ps2/rwps2.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/base.cpp b/src/base.cpp index f7776ad..3c3ca08 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -587,6 +587,7 @@ Matrix::makeRotation(Matrix *dst, const V3d *axis, float32 angle) dst->pos.y = 0.0; dst->pos.z = 0.0; dst->flags = TYPEORTHONORMAL; + dst->pad1 = dst->pad2 = dst->pad3 = 0; } /* q must be normalized */ @@ -616,6 +617,7 @@ Matrix::makeRotation(Matrix *dst, const Quat &q) dst->pos.y = 0.0; dst->pos.z = 0.0; dst->flags = TYPEORTHONORMAL; + dst->pad1 = dst->pad2 = dst->pad3 = 0; } float32 diff --git a/src/ps2/rwps2.h b/src/ps2/rwps2.h index f749e72..d2945e9 100644 --- a/src/ps2/rwps2.h +++ b/src/ps2/rwps2.h @@ -15,8 +15,8 @@ extern Device renderdevice; struct Im2DVertex { float32 x, y, z, w; - uint32 r, g, b, a; float32 u, v, q, PAD; + uint32 r, g, b, a; void setScreenX(float32 x) { this->x = x; } void setScreenY(float32 y) { this->y = y; } @@ -121,6 +121,7 @@ struct PipeAttribute uint32 attrib; }; +extern bool adcHack; // use MASK write to initialize ADC field in vertex cluster extern PipeAttribute attribXYZ; extern PipeAttribute attribXYZW; extern PipeAttribute attribUV;