From b9ba001e06e537132477ce1b4b155e99e741090a Mon Sep 17 00:00:00 2001 From: iCatButler Date: Sun, 19 Mar 2017 18:23:10 +0000 Subject: Fix issue with flat shaded primitives in colour only mode --- plugins/peopsxgl/pgxp_gpu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/peopsxgl/pgxp_gpu.c b/plugins/peopsxgl/pgxp_gpu.c index 29844d38..02a3fa7b 100644 --- a/plugins/peopsxgl/pgxp_gpu.c +++ b/plugins/peopsxgl/pgxp_gpu.c @@ -660,9 +660,10 @@ void PGXP_colour(OGLVertex* vertex, GLubyte alpha, int prim, int isTextured, int // Vertex colour only switch (colourMode) { - case COLOUR_NONE: - glColor4ub(255, 255, 255, 255); - break; + // Flat shaded primitives have their colour set earlier so we'll just leave it. + //case COLOUR_NONE: + // glColor4ub(255, 255, 255, 255); + // break; case COLOUR_FLAT: glColor4ubv(flatColour); break; @@ -762,7 +763,7 @@ int DrawDebugPrim(int prim, OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* v if (bBlend == GL_TRUE) - glDisable(GL_BLEND); +// glDisable(GL_BLEND); glLineWidth(1.f); glPolygonMode(GL_FRONT, GL_LINE); -- cgit v1.2.3