|
137 | 137 | 'emscripten_set_touchstart_callback_on_thread': ['malloc'],
|
138 | 138 | 'emscripten_set_visibilitychange_callback_on_thread': ['malloc'],
|
139 | 139 | 'emscripten_set_wheel_callback_on_thread': ['malloc'],
|
140 |
| - 'emscripten_webgl_create_context': ['malloc'], |
141 | 140 | 'emscripten_webgl_get_parameter_utf8': ['malloc'],
|
142 | 141 | 'emscripten_webgl_get_program_info_log_utf8': ['malloc'],
|
143 | 142 | 'emscripten_webgl_get_shader_info_log_utf8': ['malloc'],
|
@@ -206,16 +205,21 @@ def get_deps_info():
|
206 | 205 | _deps_info['__cxa_find_matching_catch_7'] = ['__cxa_can_catch', 'setTempRet0']
|
207 | 206 | _deps_info['__cxa_find_matching_catch_8'] = ['__cxa_can_catch', 'setTempRet0']
|
208 | 207 | _deps_info['__cxa_find_matching_catch_9'] = ['__cxa_can_catch', 'setTempRet0']
|
| 208 | + if settings.USE_PTHREADS and settings.OFFSCREENCANVAS_SUPPORT: |
| 209 | + _deps_info['pthread_create'] = ['malloc'] |
209 | 210 | if settings.FILESYSTEM and settings.SYSCALLS_REQUIRE_FILESYSTEM:
|
210 | 211 | _deps_info['mmap'] = ['emscripten_builtin_memalign']
|
211 |
| - if settings.USE_PTHREADS and settings.OFFSCREEN_FRAMEBUFFER: |
212 |
| - # When OFFSCREEN_FRAMEBUFFER is defined these functions are defined in native code, |
213 |
| - # otherwise they are defined in src/library_html5_webgl.js. |
214 |
| - _deps_info['emscripten_webgl_destroy_context'] = ['emscripten_webgl_make_context_current', 'emscripten_webgl_get_current_context'] |
215 |
| - if settings.USE_PTHREADS and settings.OFFSCREENCANVAS_SUPPORT: |
216 |
| - _deps_info['emscripten_set_offscreencanvas_size_on_target_thread'] = ['emscripten_dispatch_to_thread_', 'malloc', 'free'] |
217 |
| - _deps_info['emscripten_set_offscreencanvas_size_on_target_thread_js'] = ['malloc'] |
218 | 212 | if settings.USE_PTHREADS:
|
| 213 | + _deps_info['glutCreateWindow'] = ['malloc'] |
| 214 | + _deps_info['emscripten_webgl_create_context'] = ['malloc'] |
| 215 | + _deps_info['emscripten_webgl_destroy_context'] = ['free'] |
219 | 216 | _deps_info['emscripten_set_canvas_element_size_calling_thread'] = ['emscripten_dispatch_to_thread_']
|
| 217 | + if settings.OFFSCREEN_FRAMEBUFFER: |
| 218 | + # When OFFSCREEN_FRAMEBUFFER is defined these functions are defined in native code, |
| 219 | + # otherwise they are defined in src/library_html5_webgl.js. |
| 220 | + _deps_info['emscripten_webgl_destroy_context'] += ['emscripten_webgl_make_context_current', 'emscripten_webgl_get_current_context'] |
| 221 | + if settings.OFFSCREENCANVAS_SUPPORT: |
| 222 | + _deps_info['emscripten_set_offscreencanvas_size_on_target_thread'] = ['emscripten_dispatch_to_thread_', 'malloc', 'free'] |
| 223 | + _deps_info['emscripten_set_offscreencanvas_size_on_target_thread_js'] = ['malloc'] |
220 | 224 |
|
221 | 225 | return _deps_info
|
0 commit comments