The Wayback Machine - https://web.archive.org/web/20201125014605/https://github.com/xamarin/xamarin-macios/issues/4117
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to configure NSPixelFormat for MonoMacGameView so it will always use legacy OpenGL 2 #4117

Open
dougcs8 opened this issue May 23, 2018 · 3 comments

Comments

@dougcs8
Copy link

@dougcs8 dougcs8 commented May 23, 2018

Steps to Reproduce

  1. Create a MonoMacGameView
  2. Context will always be legacy OpenGL 2
  3. Do not see a way to work around this not even with overriding

Expected Behavior

A way to set the pixel format to something other then the default

Actual Behavior

pixel format can not be changed from default

Environment

Xamarin studio 6.3, Xamarin Mac

MonoMacGameView constructor (NSOpenGLContext arg is for a shared context so that won't help)

Build Logs

Example Project (If Possible)

@VincentDondain
Copy link
Contributor

@VincentDondain VincentDondain commented May 23, 2018

Indeed it looks like it's not possible to manually set the NSOpenGLPixelFormat with this API https://github.com/xamarin/xamarin-macios/blob/master/src/OpenGL/MonoMacGameView.cs#L69-L82.

This seems like a valid request to me but I'm not familiar with the API (there might be reasons to justify it can't be manually set). Maybe @chamons can provide more insights.

@Mohamed477
Copy link

@Mohamed477 Mohamed477 commented Oct 23, 2019

Duplicate of #

@VincentDondain
Copy link
Contributor

@VincentDondain VincentDondain commented Oct 24, 2019

@Mohamed477 could you re-link what this is a duplicate of please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.