summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-06-26 07:30:28 +0200
committerDanny Baumann <dannybaumann@web.de>2007-06-26 07:30:28 +0200
commit4dae27ad2b35a2aa87032442593621879fba5f1a (patch)
tree9432fbfe6cf6edd0598f4959cadd0d6dd60b6de9
parentf89d85c004c837a50baee9d56cc87cfb3c3071f6 (diff)
downloadgears-4dae27ad2b35a2aa87032442593621879fba5f1a.tar.gz
gears-4dae27ad2b35a2aa87032442593621879fba5f1a.tar.bz2
Properly push matrix before manipulating it.
-rw-r--r--gears.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gears.c b/gears.c
index 703fc99..83e31c8 100644
--- a/gears.c
+++ b/gears.c
@@ -259,12 +259,12 @@ static void gearsPaintInside (CompScreen *s, const ScreenPaintAttrib *sAttrib,
CompTransform mT = *transform;
(*s->applyScreenTransform) (s, &sA, output, &mT);
+ glPushMatrix();
glLoadMatrixf (mT.m);
glTranslatef (cs->outputXOffset, -cs->outputYOffset, 0.0f);
glScalef (cs->outputXScale, cs->outputYScale, 1.0f);
Bool enabledCull = FALSE;
- glPushMatrix();
glPushAttrib(GL_COLOR_BUFFER_BIT | GL_TEXTURE_BIT);
glDisable(GL_BLEND);