You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #109778 from BlueCube3310/gles3-astc-detect
Compatibility: Improve ASTC extension detecting
This commit is contained in:
@@ -78,9 +78,10 @@ Config::Config() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
bptc_supported = extensions.has("GL_ARB_texture_compression_bptc") || extensions.has("GL_EXT_texture_compression_bptc");
|
bptc_supported = extensions.has("GL_ARB_texture_compression_bptc") || extensions.has("GL_EXT_texture_compression_bptc");
|
||||||
astc_hdr_supported = extensions.has("GL_KHR_texture_compression_astc_hdr");
|
astc_3d_supported = extensions.has("GL_OES_texture_compression_astc");
|
||||||
astc_supported = astc_hdr_supported || extensions.has("GL_KHR_texture_compression_astc") || extensions.has("GL_OES_texture_compression_astc") || extensions.has("GL_KHR_texture_compression_astc_ldr") || extensions.has("WEBGL_compressed_texture_astc");
|
astc_hdr_supported = astc_3d_supported || extensions.has("GL_KHR_texture_compression_astc_hdr");
|
||||||
astc_layered_supported = extensions.has("GL_KHR_texture_compression_astc_sliced_3d");
|
astc_layered_supported = astc_hdr_supported || extensions.has("GL_KHR_texture_compression_astc_sliced_3d");
|
||||||
|
astc_supported = astc_layered_supported || extensions.has("GL_KHR_texture_compression_astc_ldr") || extensions.has("WEBGL_compressed_texture_astc");
|
||||||
|
|
||||||
if (RasterizerGLES3::is_gles_over_gl()) {
|
if (RasterizerGLES3::is_gles_over_gl()) {
|
||||||
float_texture_supported = true;
|
float_texture_supported = true;
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ public:
|
|||||||
bool astc_supported = false;
|
bool astc_supported = false;
|
||||||
bool astc_hdr_supported = false;
|
bool astc_hdr_supported = false;
|
||||||
bool astc_layered_supported = false;
|
bool astc_layered_supported = false;
|
||||||
|
bool astc_3d_supported = false;
|
||||||
bool srgb_framebuffer_supported = false;
|
bool srgb_framebuffer_supported = false;
|
||||||
|
|
||||||
bool force_vertex_shading = false;
|
bool force_vertex_shading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user