emscripten-core/emscripten
在 GitHub 查看"null function or function signature mismatch" for `glClearDepth`
Open
#18,689 创建于 2023年2月8日
Desktop OpenGL emulationhelp wanted
描述
I believe this issue is the same as Issue 14801 but for glClearDepth; that function is null. Other core functions (such as glClear) load just fine (the loader is GLAD), and the program works correctly under desktop.
Note that glClearDepth takes a double and has been available since OpenGL (not WebGL) 2.0, while glClearDepthf (which I found poking around the Emscripten source) takes a float and is available since OpenGL 4.1 (see docs for both). Note that glClearDepthf is null as well. The corresponding WebGL call is .clearDepth.
Version (emcc -v)
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.30 (cfe2bdfe2692457cb5f5770672f6e5ccb3ffc2f2)
clang version 16.0.0 (https://github.com/llvm/llvm-project 800f0f1546b2352ba42a4777149afb13cb874fcd)