diff --git a/openglosd.cpp b/openglosd.cpp index bd161f5..4cb4f05 100644 --- a/openglosd.cpp +++ b/openglosd.cpp @@ -1482,6 +1482,10 @@ void cOglThread::DoCmd(cOglCmd* cmd) { } int cOglThread::StoreImage(const cImage &image) { + + if (!maxCacheSize) { + return 0; + } if (image.Width() > maxTextureSize || image.Height() > maxTextureSize) { esyslog("[softhddev] cannot store image of %dpx x %dpx "