Closed streamingdv closed 7 months ago
Is context.makeCurrent()
necessary?
It worked without them.
Thanks for volatile, I completely forgot about it
@husker-dev yes it's necessary as otherwise resizing the canvas or disposing it will result in a black screen forever.
It fixes point 2) mentioned here
https://github.com/husker-dev/openglfx/discussions/55#discussioncomment-7647419
It's strange that this works on my PC. Although I added this line because it didn't work before.
Then let's leave it
I'll now make a big commit that will include your changes.
These are not final changes, now I’ll test them on macOS
@husker-dev i tested all other canvas elements (asynchronous and standard ones) except MacOS. The issue with context.makeCurrent() only happens when with NVDXInteropCanvasImpl but when I include this line again it will work as before. Not sure why though. If you include my commits in your next one that's fine for me as well.
+) Fix NVDXInteropCanvasImpl +) Make dispose boolean volatile
Fix for point 1) and 2) mentioned here https://github.com/husker-dev/openglfx/discussions/55#discussioncomment-7647419