emscripten-core/emscripten

"null function or function signature mismatch" for `glClearDepth`

Open

#18,689 创建于 2023年2月8日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)C++ (27,361 star) (3,519 fork)batch import
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)

贡献者指南