diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-02-26 11:58:47 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2019-02-26 11:58:47 -0300 |
commit | 5eeb06ffd1bf9cc79142760c372c17cd858cbe49 (patch) | |
tree | 824bdca6e0072ff877a1944c5b2c248c2bca0fbb /platform/javascript | |
parent | 329904598829dcbed462b012dee39bc37d7d7c83 (diff) |
-Remove harcoded opengl extension testing from OS, ask rasterizer instead.
-Fixed a bug where etc textures were imported broken
Diffstat (limited to 'platform/javascript')
-rw-r--r-- | platform/javascript/os_javascript.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index 594c0a46cc..57ae1b6e26 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -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; } |