opengl: allow glTexStorage on Android devices.

This commit is contained in:
Alex Szpakowski
2022-01-16 12:00:16 -04:00
parent a7c4e56a41
commit f78db47d0e
+2 -11
View File
@@ -1438,19 +1438,10 @@ bool OpenGL::rawTexStorage(TextureType target, int levels, PixelFormat pixelform
bool OpenGL::isTexStorageSupported()
{
bool supportsTexStorage = GLAD_VERSION_4_2 || GLAD_ARB_texture_storage;
// Apparently there are bugs with glTexStorage on some Android drivers. I'd
// rather not find out the hard way, so we'll avoid it for now...
#ifndef LOVE_ANDROID
if (GLAD_ES_VERSION_3_0)
supportsTexStorage = true;
#endif
if (gl.bugs.texStorageBreaksSubImage)
supportsTexStorage = false;
return false;
return supportsTexStorage;
return GLAD_ES_VERSION_3_0 || GLAD_VERSION_4_2 || GLAD_ARB_texture_storage;
}
bool OpenGL::isTextureTypeSupported(TextureType type) const