From e012706d7cc2ba825549a63e31e0374bc5783dd0 Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Fri, 14 Mar 2025 19:08:34 +0200 Subject: [PATCH] im2dvtx: use CameraZ, no-op RecipCameraZ --- vendor/librw/src/dc/rwdc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/librw/src/dc/rwdc.h b/vendor/librw/src/dc/rwdc.h index 2d18e0c0..449e751c 100644 --- a/vendor/librw/src/dc/rwdc.h +++ b/vendor/librw/src/dc/rwdc.h @@ -46,7 +46,7 @@ struct Im2DVertex void setScreenZ(float32 z) { this->z = z; } // This is a bit unefficient but we have to counteract GL's divide, so multiply void setCameraZ(float32 z) { this->w = z; } - void setRecipCameraZ(float32 recipz) { this->w = 1.0f/recipz; } + void setRecipCameraZ(float32 recipz) { /* don't change w here, as recipz is not always the correct one, see Coronas.cpp */ } void setColor(uint8 r, uint8 g, uint8 b, uint8 a) { this->r = r; this->g = g; this->b = b; this->a = a; } void setU(float32 u, float recipz) { this->u = u; }