Set cache to zero for broken vaapi

This commit is contained in:
jojo61 2020-02-20 16:00:16 +01:00
parent 2485929c2b
commit a5b81f8de1
1 changed files with 4 additions and 0 deletions

View File

@ -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 "