ASTC has guaranteed support when OpenGL ES 3.2 is used.

This commit is contained in:
Alex Szpakowski
2015-12-31 15:48:05 -04:00
parent 1461da598e
commit 5a98af7e2d
+3 -3
View File
@@ -29,10 +29,10 @@
#ifdef LOVE_ANDROID
// log2 is not declared in the math.h shipped with the Android NDK
#include <cmath>
inline double log2( double n )
inline double log2(double n)
{
// log(n)/log(2) is log2.
return std::log( n ) / std::log( 2 );
return std::log(n) / std::log(2);
}
#endif
@@ -751,7 +751,7 @@ bool Image::hasCompressedTextureSupport(image::CompressedImageData::Format forma
case CompressedImageData::FORMAT_ASTC_10x10:
case CompressedImageData::FORMAT_ASTC_12x10:
case CompressedImageData::FORMAT_ASTC_12x12:
return /*GLAD_ES_VERSION_3_2 ||*/ GLAD_KHR_texture_compression_astc_ldr;
return GLAD_ES_VERSION_3_2 || GLAD_KHR_texture_compression_astc_ldr;
default:
return false;
}