emscripten-core/emscripten

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

Open

#18.689 aperta il 8 feb 2023

Vedi su GitHub
 (9 commenti) (0 reazioni) (0 assegnatari)C++ (3519 fork)batch import
Desktop OpenGL emulationhelp wanted

Metriche repository

Star
 (27.361 star)
Metriche merge PR
 (Merge medio 19g 10h) (147 PR mergiate in 30 g)

Descrizione

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)

Guida contributor