OpenGL 3.2 on Mac?

Questions about Wine on macOS.
Locked
HartLabs
Newbie
Newbie
Posts: 2
Joined: Wed Oct 22, 2014 8:02 pm

OpenGL 3.2 on Mac?

Post by HartLabs »

So I use C++, SFML and OpenGL 3.2 in my project. I am trying to add a limited initial Mac support so people can run through Wine. I have been able to do so in Linux by asking for a core profile (it returns a 3.3). It works great! The same build does not work on Mac, users report it only returns 2.1 even when their hardware and OS is capable of 3.2 or higher (10.9.5, HD 4000). This was the problem with Linux prior to specifying the core profile, seems I am stuck in legacy.

It is a bit difficult as I do not have a machine to test on as I do with PC/Linux. It is on my list to get but not highest priority use of funds right now. I have seen in my searching that additionally specifying forward compatibility might be necessary for it to work, but that does not change anything either. Same thing with glewExperimental set to true. The user reports did not specify the exact version of Wine, but I know at least 1 downloaded it specifically for my program so it should be the latest as of last week.

Anyone have experience with this to point me in the right direction? It is possible to get 3.2 or higher right now? Tricks? Things to Try?
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: OpenGL 3.2 on Mac?

Post by doh123 »

I have NOT looked through current Wine code... but to specify to use Core OpenGL on Mac (newest versions), and not the default legacy (2.1), it has to be specifically checked and set. I do not think current Wine does this... I've only ever seen 3.2.

You could dig into the Wine source and see about fixing it... or making a special Wine build that works?
https://developer.apple.com/library/mac ... rmats.html
HartLabs
Newbie
Newbie
Posts: 2
Joined: Wed Oct 22, 2014 8:02 pm

Re: OpenGL 3.2 on Mac?

Post by HartLabs »

doh123 wrote:it has to be specifically checked and set
Interesting, I would have though Wine just passes through my requests and I do request core, especially since it works on Linux. I might dig into the code. Anyone know for sure?
doh123 wrote:I've only ever seen 3.2
Did you mean 2.1 here?
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: OpenGL 3.2 on Mac?

Post by doh123 »

HartLabs wrote:
doh123 wrote:it has to be specifically checked and set
Interesting, I would have though Wine just passes through my requests and I do request core, especially since it works on Linux. I might dig into the code. Anyone know for sure?
doh123 wrote:I've only ever seen 3.2
Did you mean 2.1 here?
you are right, I meant 2.1...

I do not know where this is set in the code... Wine might be passing this to OS X incorrectly since its different than Linux, or it might not pass anything at all, and OS X defaults to 2.1.
v1nsai
Level 1
Level 1
Posts: 8
Joined: Sun Jun 21, 2009 12:12 am

Re: OpenGL 3.2 on Mac?

Post by v1nsai »

So does this mean that there is a way to force WINE to use opengl 3.2? I'm on a Mac that supports up to OpenGL 3.3, but I'm getting the same problem with a program I'm trying to run telling me that I'm on 2.1. Is there a winetricks command or something to force the program to use the correct OpenGL on my system?
Locked