diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2017-03-19 16:39:48 +0000 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2017-03-19 16:39:48 +0000 |
| commit | 685e0402689dca68f4828411787c30ea7b47a997 (patch) | |
| tree | 081a8afe3a9e1aed018c5987a4ceeab8f3b3c9a4 | |
| parent | 53a4511c71a9ccc310725a9d7f8097b41b48e64e (diff) | |
Fix false positive when rendering transparent objects in wireframe
| -rw-r--r-- | plugins/peopsxgl/pgxp_gpu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/peopsxgl/pgxp_gpu.c b/plugins/peopsxgl/pgxp_gpu.c index f66d280f..29844d38 100644 --- a/plugins/peopsxgl/pgxp_gpu.c +++ b/plugins/peopsxgl/pgxp_gpu.c @@ -712,8 +712,12 @@ int DrawDebugPrim(int prim, OGLVertex* vertex1, OGLVertex* vertex2, OGLVertex* v if (bBlend == GL_TRUE)
{
- // alpha = 128;
+ // alpha = 128;
glDisable(GL_BLEND);
+ }
+
+ if(DrawSemiTrans)
+ {
glPolygonMode(GL_FRONT, GL_LINE);
glPolygonMode(GL_BACK, GL_LINE);
glLineWidth(5.f);
|
