[fusion-commits] Shift window switcher.: Changes to 'master' (882c63863b1cbd0de350ed470a8c550adaa2f3dd)

onestone at server.opencompositing.org onestone at server.opencompositing.org
Sat May 3 02:42:21 CEST 2008


New commits:
commit 882c63863b1cbd0de350ed470a8c550adaa2f3dd
Author: Dennis Kasprzyk <onestone at opencompositing.org>
Date:   Sat May 3 02:43:29 2008 +0200

    Flp cull face for reflection.


 shift.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


Modified: fusion/plugins/shift/shift.c
===================================================================
--- fusion/plugins/shift/shift.c
+++ fusion/plugins/shift/shift.c
@@ -1423,6 +1423,9 @@ shiftPaintOutput (CompScreen		  *s,
 	{
 	    CompTransform  rTransform = sTransform;
 	    unsigned short color[4];
+	    int            cull, cullInv;
+	    glGetIntegerv (GL_CULL_FACE_MODE, &cull);
+	    cullInv = (cull == GL_BACK)? GL_FRONT : GL_BACK;
 
 	    matrixTranslate (&rTransform, 0.0, oy1 + oy2 + maxThumbHeight,
 			     0.0);
@@ -1431,7 +1434,7 @@ shiftPaintOutput (CompScreen		  *s,
 	    glPushMatrix ();
 	    glLoadMatrixf (rTransform.m);
 
-	    glDisable (GL_CULL_FACE);
+	    glCullFace (cullInv);
 
 	    if (shiftGetMipmaps (s))
 		s->display->textureFilter = GL_LINEAR_MIPMAP_LINEAR;
@@ -1457,7 +1460,7 @@ shiftPaintOutput (CompScreen		  *s,
 	    }
 
 	    glDisable (GL_CLIP_PLANE0);
-	    glEnable( GL_CULL_FACE);
+	    glCullFace (cull);
 
 	    glLoadIdentity();
 	    glTranslatef (0.0, 0.0, -DEFAULT_Z_CAMERA);


More information about the commits mailing list