allan.jiang
Topic Author
Posts: 2
Joined: 26 Apr 2020, 09:13

[osx]When run C# samples, get exception

27 Apr 2020, 12:08

visual studio for mac.
osx 10.14.6.
Each OSX C# samples fails, just when start directly.
屏幕快照 2020-04-26 下午4.08.24.png
屏幕快照 2020-04-26 下午4.08.18.png
 
User avatar
hcpizzi
Site Admin
Posts: 325
Joined: 09 Feb 2012, 12:40

Re: [osx]When run C# samples, get exception

28 Apr 2020, 11:10

Hi allan.jiang,

Does your Mac support the Metal API? Could you try the following: In the App.cs file of the project you're trying to run, replace RenderContextMTL with RenderContextNSGL in the function CreateRenderContext. That will use the Open GL renderer insted of Metal.

Please, let us know if that works.
 
allan.jiang
Topic Author
Posts: 2
Joined: 26 Apr 2020, 09:13

Re: [osx]When run C# samples, get exception

29 Apr 2020, 11:50

Hi allan.jiang,

Does your Mac support the Metal API? Could you try the following: In the App.cs file of the project you're trying to run, replace RenderContextMTL with RenderContextNSGL in the function CreateRenderContext. That will use the Open GL renderer insted of Metal.

Please, let us know if that works.
It works!
Thanks a lot.
 
User avatar
jsantos
Site Admin
Posts: 3939
Joined: 20 Jan 2012, 17:18
Contact:

Re: [osx]When run C# samples, get exception

30 Apr 2020, 03:25

Thanks for the feedback! Closing this

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 12 guests