emscripten-core/emscripten

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

Open

#18.689 geöffnet am 8. Feb. 2023

Auf GitHub ansehen
 (9 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (27.361 Stars) (3.519 Forks)batch import
Desktop OpenGL emulationhelp wanted

Beschreibung

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)

Contributor Guide