summaryrefslogtreecommitdiff
path: root/plugins/blur/src/blur.cpp
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-09-25 09:21:30 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-09-25 09:21:30 -0500
commit5b302b77750ecf187c37d768fbfbcf79204d1833 (patch)
tree01bd43b66fc84ffcb17db715a6983d6c07b94c22 /plugins/blur/src/blur.cpp
parent6f24079b8719327c112fd031e16f2bf7ec41fa42 (diff)
downloadzcomp-5b302b77750ecf187c37d768fbfbcf79204d1833.tar.gz
zcomp-5b302b77750ecf187c37d768fbfbcf79204d1833.tar.bz2
Fix crash when glGenerateMipmapEXT is unavailable.
Diffstat (limited to 'plugins/blur/src/blur.cpp')
-rw-r--r--plugins/blur/src/blur.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/blur/src/blur.cpp b/plugins/blur/src/blur.cpp
index a150acb..1e88fa7 100644
--- a/plugins/blur/src/blur.cpp
+++ b/plugins/blur/src/blur.cpp
@@ -1559,7 +1559,8 @@ BlurWindow::updateDstTexture (const GLMatrix &transform,
return bScreen->fboUpdate (bScreen->tmpRegion.handle ()->rects,
bScreen->tmpRegion.numRects ());
case BlurOptions::FilterMipmap:
- (*GL::generateMipmap) (bScreen->target);
+ if (GL::generateMipmap)
+ (*GL::generateMipmap) (bScreen->target);
break;
case BlurOptions::Filter4xbilinear:
break;