Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix NSOpenGLPixelFormat ConvertToAttributes method #1539
From Bug #43250.
Trying to use a NSOpenGLProfile as an attribute, such as in:
would cause the code to crash with an invalid cast exception when it tries to cast directly from NSOpenGLProfile to NSOpenGLPixelFormat: at line 61:
This updates the code to first cast to an int before casting to NSOpenGLPixelFormatAttribute when the original value is another enum type.
Failure looks to be unrelated, https://bugzilla.xamarin.com/show_bug.cgi?id=50419
Xamarin.Hosting: Launching com.xamarin.linksdk on 'iOS 10.2 (14C89) - iPhone 5s'