From 4b706847d4ffbaa72b2d2a39130f71b0d2a401b6 Mon Sep 17 00:00:00 2001 From: iCatButler Date: Tue, 3 May 2016 17:02:53 +0100 Subject: Ensure w is reset to 1.f to prevent stale values. --- plugins/peopsxgl/gpu.c | 3 ++- plugins/peopsxgl/pgxp_gpu.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c index 2237351d..60be981b 100755 --- a/plugins/peopsxgl/gpu.c +++ b/plugins/peopsxgl/gpu.c @@ -2995,7 +2995,8 @@ ENDVRAM: for (unsigned int i = 0; i < 4; i++) //iCB: remove stale vertex data { vertex[i].x = vertex[i].y = 0.f; - vertex[i].z = 1.f; + vertex[i].z = 0.95f; + vertex[i].w = 1.f; } primFunc[gpuCommand]((unsigned char *)gpuDataM); diff --git a/plugins/peopsxgl/pgxp_gpu.c b/plugins/peopsxgl/pgxp_gpu.c index 98b7a94d..67b381d8 100644 --- a/plugins/peopsxgl/pgxp_gpu.c +++ b/plugins/peopsxgl/pgxp_gpu.c @@ -115,6 +115,8 @@ void PGXP_glVertexfv(GLfloat* pV) // pass complete vertex to OpenGL glVertex4fv(pV); vertexIdx++; + + pV[3] = 1.f; } else { -- cgit v1.2.3