|
@@ -29,10 +29,10 @@
|
|
#ifdef LOVE_ANDROID
|
|
#ifdef LOVE_ANDROID
|
|
// log2 is not declared in the math.h shipped with the Android NDK
|
|
// log2 is not declared in the math.h shipped with the Android NDK
|
|
#include <cmath>
|
|
#include <cmath>
|
|
-inline double log2( double n )
|
|
|
|
|
|
+inline double log2(double n)
|
|
{
|
|
{
|
|
// log(n)/log(2) is log2.
|
|
// log(n)/log(2) is log2.
|
|
- return std::log( n ) / std::log( 2 );
|
|
|
|
|
|
+ return std::log(n) / std::log(2);
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -751,7 +751,7 @@ bool Image::hasCompressedTextureSupport(image::CompressedImageData::Format forma
|
|
case CompressedImageData::FORMAT_ASTC_10x10:
|
|
case CompressedImageData::FORMAT_ASTC_10x10:
|
|
case CompressedImageData::FORMAT_ASTC_12x10:
|
|
case CompressedImageData::FORMAT_ASTC_12x10:
|
|
case CompressedImageData::FORMAT_ASTC_12x12:
|
|
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:
|
|
default:
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|