summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/blurfx.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-03 01:08:55 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-03 01:08:55 +0000
commitadeb9ea7fc5c6fa6bd0c4fddf7abd08439091a37 (patch)
tree4c84d5973c9ea74f1d1fca7362c3154cf95d0f65 /beryl-plugins/src/blurfx.c
parent5dce680bc0d81cea8468ee3a1e451a964a71b30a (diff)
downloadmarex-dev-adeb9ea7fc5c6fa6bd0c4fddf7abd08439091a37.tar.gz
marex-dev-adeb9ea7fc5c6fa6bd0c4fddf7abd08439091a37.tar.bz2
beryl-plugins: blurfx. fixed some lighting related nonfbo mode issues
git-svn-id: file:///beryl/trunk@1510 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/blurfx.c')
-rw-r--r--beryl-plugins/src/blurfx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/beryl-plugins/src/blurfx.c b/beryl-plugins/src/blurfx.c
index 5a63478..cd2a5b2 100644
--- a/beryl-plugins/src/blurfx.c
+++ b/beryl-plugins/src/blurfx.c
@@ -3463,6 +3463,14 @@ updateBlurNoFBO(CompWindow * w, CompScreen * s,
MULTM(bm, bs->pm, bpm);
MULTM(bpm, bw->mvm, tm);
+ Bool enable_light = FALSE;
+
+ if (glIsEnabled (GL_LIGHTING))
+ {
+ glDisable (GL_LIGHTING);
+ enable_light = TRUE;
+ }
+
int i;
XRectangle sRect, bRect;
for (i = 0; i < reblurRegion->numRects; i++) {
@@ -3682,6 +3690,9 @@ updateBlurNoFBO(CompWindow * w, CompScreen * s,
glPopMatrix();
+ if (enable_light)
+ glEnable(GL_LIGHTING);
+
XDestroyRegion(reblurRegion);
}