virtualx-engine/platform/javascript/js/libs
Fabio Alessandrelli 35b7e86e6e
[HTML5] Use compatibility function for glGetBufferSubData.
The "webgl/webgl2.h" include provides that function, but it's not
available in emscripten versions < 2.0.17 .

Since we need to support emscripten 1.39.9 (mono builds), this commit
adds a JS function in library_godot_display.js as a compatibility layer
for it, and implement glGetBufferSubData by funneling the call to that
function (so we don't have name collisions JS-side with recent emcc).

All those hacks are now moved to the platform directory instead of being
ifdefs inside the drivers implementations.

(cherry picked from commit bbfe054175)
2021-11-29 16:42:26 +01:00
..
audio.worklet.js [HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads. 2021-09-20 14:53:27 +02:00
library_godot_audio.js HTML5: Fix minification error with Emscripten 1.39.9 2021-09-29 10:54:01 +02:00
library_godot_display.js [HTML5] Use compatibility function for glGetBufferSubData. 2021-11-29 16:42:26 +01:00
library_godot_fetch.js [HTML5] Fix some JS library signature. 2021-06-17 12:47:54 +02:00
library_godot_input.js [HTML5] Fix focus (again) in Firefox's iframes. 2021-11-26 10:43:32 +01:00
library_godot_javascript_singleton.js [HTML5] Fix some JS library signature. 2021-06-17 12:47:54 +02:00
library_godot_os.js [HTML5] Refactor JS library listeners to OS. 2021-10-05 15:13:41 +02:00
library_godot_runtime.js [HTML5] Rename heapCopy to heapSlice. 2021-03-05 17:32:17 +01:00