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

Closed
ghost opened this issue May 23, 2018 · 4 comments
Labels
enhancement The issue or pull request is an enhancement good first issue This is a good first issue for someone to start working with our code help wanted This is an issue or pull request where we request help from the community to fix or complete macOS Issues affecting Xamarin.Mac
Milestone

Comments

@ghost
Copy link

ghost 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

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.

@VincentDondain VincentDondain added this to the Future milestone May 23, 2018
@VincentDondain VincentDondain added enhancement The issue or pull request is an enhancement macOS Issues affecting Xamarin.Mac good first issue This is a good first issue for someone to start working with our code help wanted This is an issue or pull request where we request help from the community to fix or complete labels May 23, 2018
@Mohamed477
Copy link

Duplicate of #

@VincentDondain
Copy link
Contributor

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

@rolfbjarne
Copy link
Member

We no longer ship OpenTK in .NET, so this doesn't apply anymore. Please use upstream OpenTK binaries instead (https://github.com/opentk/opentk).

@rolfbjarne rolfbjarne closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2022
@xamarin xamarin locked as resolved and limited conversation to collaborators Oct 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement The issue or pull request is an enhancement good first issue This is a good first issue for someone to start working with our code help wanted This is an issue or pull request where we request help from the community to fix or complete macOS Issues affecting Xamarin.Mac
Projects
None yet
Development

No branches or pull requests

3 participants