Skip to content

Fix pthreads without OFFSCREEN_FRAMEBUFFER use of emscripten_webgl_make_context_current - #8613

Merged
kripken merged 4 commits into
incomingfrom
offscreen4
May 15, 2019
Merged

kripken merged 4 commits into
incomingfrom
offscreen4

Conversation

@kripken

@kripken kripken commented May 15, 2019

Copy link
Copy Markdown
Member

And add a complete test for both that and for emscripten_webgl_create_context in that mode (which also tests #8579)

kripken added 2 commits May 14, 2019 16:11
…ke_context_current, and add a complete test for both that and for emscripten_webgl_create_context in that mode (which also tests #8579)
@kripken
kripken requested a review from kainino0x May 15, 2019 00:55
Comment thread tests/test_browser.py
@requires_graphics_hardware
@requires_threads
def test_webgl2_pthreads(self):
self.btest(path_from_root('tests', 'webgl2.cpp'), args=['-s', 'USE_WEBGL2=1', '-lGL', '-s', 'USE_PTHREADS=1'], expected='0')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was a little confused for a moment about why this is testing a file that doesn't use threads with USE_PTHREADS. I assume it is to have USE_PTHREADS but not OFFSCREEN_FRAMEBUFFER set above; could you add a small comment about that?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Adding, thanks.

@kripken
kripken merged commit 1fd617b into incoming May 15, 2019
@kripken
kripken deleted the offscreen4 branch May 15, 2019 20:40
VirtualTim pushed a commit to VirtualTim/emscripten that referenced this pull request May 21, 2019
…ke_context_current (emscripten-core#8613)

And add a complete test for both that and for emscripten_webgl_create_context in that mode (which also tests emscripten-core#8579)
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
…ke_context_current (emscripten-core#8613)

And add a complete test for both that and for emscripten_webgl_create_context in that mode (which also tests emscripten-core#8579)
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