Android: potentially work around a Qualcomm Adreno driver bug which prevented videos from being loaded into vram.

This commit is contained in:
Alex Szpakowski
2018-12-31 21:02:02 -04:00
parent 3af66da51e
commit 364718fa46
5 changed files with 29 additions and 1 deletions
+9
View File
@@ -590,6 +590,15 @@ bool Canvas::isFormatSupported(PixelFormat format, bool readable)
return supported;
}
void Canvas::resetFormatSupport()
{
for (int i = 0; i < (int)PIXELFORMAT_MAX_ENUM; i++)
{
checkedFormats[i].readable = false;
checkedFormats[i].nonreadable = false;
}
}
} // opengl
} // graphics
} // love