diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2017-03-19 18:23:10 +0000 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2017-03-19 18:23:10 +0000 |
| commit | b9ba001e06e537132477ce1b4b155e99e741090a (patch) | |
| tree | 4867575fba5290dd1da489da6377d9d24fe57215 /plugins | |
| parent | 685e0402689dca68f4828411787c30ea7b47a997 (diff) | |
| download | pcsxr-b9ba001e06e537132477ce1b4b155e99e741090a.tar.gz | |
Fix issue with flat shaded primitives in colour only mode
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/peopsxgl/pgxp_gpu.c | 9 |
1 files changed, 5 insertions, 4 deletions
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);
|
