Skip to content

Remove duplicate proxying for emscripten_webgl_create_context#21200

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:remove_duplicate_proxying
Open

Remove duplicate proxying for emscripten_webgl_create_context#21200
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:remove_duplicate_proxying

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 29, 2024

The logic here for proxying this call seems to exist in both the JS
code and in the native code. It seems to have been that way since it
was added in #6254.

The logic here for proxying this call seems to exist in both the JS
code and in the native code.   It seems to have been that way since it
was added in emscripten-core#6254.
@sbc100 sbc100 changed the title Remove duplicate prozying for emscripten_webgl_create_context Remove duplicate proxying for emscripten_webgl_create_context Jan 29, 2024
@sbc100 sbc100 requested review from juj and kripken January 29, 2024 18:06
pthread_once(&tlsInit, InitWebGLTls);

if (attributes->proxyContextToMainThread == EMSCRIPTEN_WEBGL_CONTEXT_PROXY_ALWAYS ||
(attributes->proxyContextToMainThread == EMSCRIPTEN_WEBGL_CONTEXT_PROXY_FALLBACK && !emscripten_supports_offscreencanvas())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check looks a little different than JS: it also has emscripten_supports_offscreencanvas. I don't know the offscreen canvas stuff well - is that not an issue?

@sbc100 sbc100 closed this Jan 3, 2025
@sbc100 sbc100 deleted the remove_duplicate_proxying branch January 3, 2025 22:45
@sbc100 sbc100 restored the remove_duplicate_proxying branch January 4, 2025 00:24
@sbc100 sbc100 reopened this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants