-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[wasm64] Run all browser64 egl/gl/glfw/glew tests #20603
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
Conversation
46c7c2b to
a05952b
Compare
| this.keyFunc = null; // GLFWkeyfun | ||
| this.charFunc = null; // GLFWcharfun | ||
| this.userptr = null; | ||
| this.windowPosFunc = 0; // GLFWwindowposfun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is because null cannot be converted to BigInt when we return these as pointers.
src/library_glew.js
Outdated
| extensionIsSupported(name) { | ||
| if (!GLEW.extensions) { | ||
| GLEW.extensions = UTF8ToString(_glGetString(0x1F03)).split(' '); | ||
| GLEW.extensions = GLctx.getSupportedExtensions() || []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not apply the processing that GL_EXTENSIONS_IN_PREFIXED_FORMAT does in library_webgl.js, so it changes behavior potentially?
emscripten/src/library_webgl.js
Lines 1143 to 1149 in f140f5c
| case 0x1F03 /* GL_EXTENSIONS */: | |
| var exts = GLctx.getSupportedExtensions() || []; // .getSupportedExtensions() can return null if context is lost, so coerce to empty array. | |
| #if GL_EXTENSIONS_IN_PREFIXED_FORMAT | |
| exts = exts.concat(exts.map((e) => "GL_" + e)); | |
| #endif | |
| ret = stringToNewUTF8(exts.join(' ')); | |
| break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed by adding new GL.getExtensions() helper method.
Split out from #20516