<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br><div><br><blockquote type="cite"><div>On May 23, 2023, at 5:54 AM, Martin Pernollet <martin.pernollet@protonmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div style="font-family: Arial, sans-serif; font-size: 14px;">Hi Philip,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Thank you a lot for these helpful clarifications.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">You are right, I definitely need to jump on a dedicated OS thread. It is a pity the -XstartOnFirstThread does not do it.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">We may probably use JOGL's OSXUtil class that does a good job at handling this already. The only limitation is that getting OSXUtil requires depending on all JOGL which additionally requires tweaks to avoid hangs and the like.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Regards,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Martin</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_quote">
------- Original Message -------<br>
Le mardi 18 avril 2023 à 19:52, Philip Race <philip.race@oracle.com> a écrit :<br><br>
</div></div></blockquote><br></div><div>Martin, </div><div><br></div><div>A little strange you are replying to this one from April but not mine from 2 days ago? </div><div><br></div><div>As I remember there were two show stopper issues. First OS/X OpenGL required -XstartOnFirstThread which didn’t work for Swing applications, and, Apple was discontinuing OpenGL support in favor of their own Metal API’s? </div><div><br></div><div>In my post I mentioned that using a Mesa offscreen build I was able to run the demo creating an offscreen image and saving it to disk. </div><div><br></div><div>As I remember your goal was to create an offscreen image and then copy it over to Swing. So, that’s done?</div><div><br></div><div>I changed the Panama API’s you used from 19 to 20. Which you will have to do sometime? </div><div><br></div><div>Other than that for OS/X supporting OpenGL api’s going forward for Swing, or probably JavaFX, what is wrong with what I have? Maybe I can fix it.</div><div><br></div><div>Mike</div><br></body></html>