You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Returns is described as follows in the documentation:
On success, a strictly positive value that represents a handle to the created context. On failure, a negative number that can be cast to an EMSCRIPTEN_RESULT field to get the reason why the context creation failed.
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE
Is it SUCCESS or FAILURE when the return value is 0?
The text was updated successfully, but these errors were encountered:
ferrytt
changed the title
[question]What about it means when return 0
[question]What about it means when the return value is 0
Apr 23, 2021
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.
I experienced this issue today - emscripten_webgl_create_context returned zero. It was (accidentally) running in a pthread and EmscriptenWebGLContextAttributes.proxyContextToMainThread was set to EMSCRIPTEN_WEBGL_CONTEXT_PROXY_DISALLOW, so I would guess the 0 return value meant that there was a configuration problem. It would be nice to either return a negative value describing the problem (as per the current documentation), or update the docs to document the meaning of a zero return value. Thanks!
emscripten_webgl_create_context
The Returns is described as follows in the documentation:
Is it SUCCESS or FAILURE when the return value is 0?
The text was updated successfully, but these errors were encountered: