emscripten-core / emscripten-core/emscripten

Function signature mismatch

Open
#12,950 19 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I'm attempting to run Google Dawn code using OpenGL and Emscripten, but ran into a runtime error with signature mismatch. The function is declared as `GLenum glClientWaitSync(GLsync p0, GLbitfield p1, GLuint64 p2)`, its pointer is fetched dynamically. The code I use calls it as `(func (param i32 i32 i64) (result i32)))`, but Emscripten defines it as `(func (param i32 i32 i32 i32) (result i32)))`. Are there any flags I'm missing, or is it a bug in Emscripten or the SDK?

I assume this isn't the only function affected, but it's as far as the program reached

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.