You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-Remove harcoded opengl extension testing from OS, ask rasterizer instead.
-Fixed a bug where etc textures were imported broken
This commit is contained in:
@@ -1071,16 +1071,6 @@ bool OS_JavaScript::_check_internal_feature_support(const String &p_feature) {
|
||||
return true;
|
||||
#endif
|
||||
|
||||
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE ctx = emscripten_webgl_get_current_context();
|
||||
// All extensions are already automatically enabled, this function allows
|
||||
// checking WebGL extension support without inline JavaScript
|
||||
if (p_feature == "s3tc")
|
||||
return emscripten_webgl_enable_extension(ctx, "WEBGL_compressed_texture_s3tc_srgb");
|
||||
if (p_feature == "etc")
|
||||
return emscripten_webgl_enable_extension(ctx, "WEBGL_compressed_texture_etc1");
|
||||
if (p_feature == "etc2")
|
||||
return emscripten_webgl_enable_extension(ctx, "WEBGL_compressed_texture_etc");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user