mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Merge pull request #109778 from BlueCube3310/gles3-astc-detect
Compatibility: Improve ASTC extension detecting
This commit is contained in:
commit
191efe2e91
2 changed files with 5 additions and 3 deletions
|
@ -78,9 +78,10 @@ Config::Config() {
|
|||
#endif
|
||||
|
||||
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_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_layered_supported = extensions.has("GL_KHR_texture_compression_astc_sliced_3d");
|
||||
astc_3d_supported = extensions.has("GL_OES_texture_compression_astc");
|
||||
astc_hdr_supported = astc_3d_supported || extensions.has("GL_KHR_texture_compression_astc_hdr");
|
||||
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()) {
|
||||
float_texture_supported = true;
|
||||
|
|
|
@ -80,6 +80,7 @@ public:
|
|||
bool astc_supported = false;
|
||||
bool astc_hdr_supported = false;
|
||||
bool astc_layered_supported = false;
|
||||
bool astc_3d_supported = false;
|
||||
bool srgb_framebuffer_supported = false;
|
||||
|
||||
bool force_vertex_shading = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue