Set cache to zero for broken vaapi
This commit is contained in:
parent
2485929c2b
commit
a5b81f8de1
|
@ -1482,6 +1482,10 @@ void cOglThread::DoCmd(cOglCmd* cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int cOglThread::StoreImage(const cImage &image) {
|
int cOglThread::StoreImage(const cImage &image) {
|
||||||
|
|
||||||
|
if (!maxCacheSize) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (image.Width() > maxTextureSize || image.Height() > maxTextureSize) {
|
if (image.Width() > maxTextureSize || image.Height() > maxTextureSize) {
|
||||||
esyslog("[softhddev] cannot store image of %dpx x %dpx "
|
esyslog("[softhddev] cannot store image of %dpx x %dpx "
|
||||||
|
|
Loading…
Reference in New Issue