-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glGetVertexAttribiv throws TypeError when using closure #7472
Comments
Thanks for reporting - do you have a full testcase that I can reproduce the problem with locally, so I can debug it? |
Sure. The error is slightly different(Math.h, but same TypeError). https://gist.github.com/ILikeBigBoots/bc06e5b0f774e819663c3f18dc3171ae emcc (Emscripten gcc/clang-like replacement) 1.38.15 ((unknown revision))
|
Do I also need a CMakeLists.txt file for that? When I tried to build that source file with |
The CMakeLists is as basic as it gets. I noticed though that specifying it as Release Build_Type is necessary to get the error. Removing it doesn't produce the error. Just to be sure, this is my CMakeList.txt
And this is my build.sh
|
Thanks @ILikeBigBoots! Now I see. Looks like a closure compiler issue, fix in #7476. |
Hey there,
I'm getting 2 exceptions when using glGetVertexAttribiv to check for GL_VERTEX_ATTRIB_ARRAY_ENABLED.
The issue is in this part. Commenting it out makes everything work like a charm.
I noticed the issue is in the wasm build as well. Not using closure solves this issue.
Exceptions:
and
I'm using the version 1.38.15 on Linux.
Here is the full cmake command, as mentioned changing closure to 0 fixes the issue:
The text was updated successfully, but these errors were encountered: