mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
ASTC has guaranteed support when OpenGL ES 3.2 is used.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user