https://bugs.winehq.org/show_bug.cgi?id=38158
Bug ID: 38158 Summary: Opengl 3.2 need additional declarations to be used Product: Wine Version: 1.7.37 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: major Priority: P2 Component: winemac.drv Assignee: wine-bugs@winehq.org Reporter: mkr@ukr.net
Wine detect and use only opengl 2.1
As stated in this documentation page https://developer.apple.com/library/mac/documentation/GraphicsImaging/Concep...
additional declarations need to be added for Opengl 3.2 core profile to be enabled.
Please add them.
https://bugs.winehq.org/show_bug.cgi?id=38158
--- Comment #1 from Ken Thomases ken@codeweavers.com --- (In reply to Maksim Soifer from comment #0)
Wine detect and use only opengl 2.1
How did you come to that conclusion? Do you have a test program?
The reason I ask is that you're wrong. Wine supports OpenGL 3.2 core profiles since 1.7.34. Of course, it's always possible that there's a bug, but you'd have to identify something specific that's failing to work.
https://bugs.winehq.org/show_bug.cgi?id=38158
--- Comment #2 from Maksim Soifer mkr@ukr.net --- Created attachment 50899 --> https://bugs.winehq.org/attachment.cgi?id=50899 GLEW report
GLew 1.12 opengl caps report
https://bugs.winehq.org/show_bug.cgi?id=38158
--- Comment #3 from Ken Thomases ken@codeweavers.com --- You could have been clearer. I gather that you ran the glewinfo.exe program from https://sourceforge.net/projects/glew/files/glew/1.12.0/glew-1.12.0-win32.zip/download.
What about that output is different from what you expect?
Is this the problem:
OpenGL version 2.1 NVIDIA-10.0.19 310.90.10.05b12 is supported
?
From a +wgl log, it looks like glewinfo.exe/GLEW is just calling
wglCreateContext(). It's not calling wglCreateContextAttribsARB(), let alone specifying any attributes.
When an app calls wglCreateContext(), the implementation may return a context of any version that is backward-compatible with OpenGL 1.0. As per the WGL_ARB_create_context spec, that can include versions up through 3.0, version 3.1 with GL_ARB_compatibility, or version 3.2 (or later) compatibility profile.
OS X does not provide GL_ARB_compatibility, so 3.1 is not acceptable. Likewise, it does not provide compatibility profiles for 3.2 or later. It only provides core profiles. In fact, they are the more restrictive forward-compatible core profiles.
On OS X, an app can only obtain a 3.2 core profile if it calls wglCreateContextAttribsARB() and specifies version 3.2, 3.3, 4.0, or 4.1; WGL_CONTEXT_FLAGS_ARB == WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; and WGL_CONTEXT_PROFILE_MASK_ARB == WGL_CONTEXT_CORE_PROFILE_BIT_ARB. glewinfo.exe does not do that, so it just gets a 2.1 context.
Was glewinfo.exe the real thing you wanted working?
https://bugs.winehq.org/show_bug.cgi?id=38158
fulopm mrkflp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrkflp@gmail.com
--- Comment #4 from fulopm mrkflp@gmail.com --- I have the same problem. I got an error when I'm trying to run a game with Wine (see attachment opengl_error_mac.png). I have a Macbook Air, with Intel HD Graphics 6000, which supports opengl 3.1 and 3.2 features.
Can you please help me?
https://bugs.winehq.org/show_bug.cgi?id=38158
--- Comment #5 from fulopm mrkflp@gmail.com --- Created attachment 58846 --> https://bugs.winehq.org/attachment.cgi?id=58846 Error screen
https://bugs.winehq.org/show_bug.cgi?id=38158
--- Comment #6 from Ken Thomases ken@codeweavers.com --- (In reply to fulopm from comment #4)
I have the same problem. I got an error when I'm trying to run a game with Wine (see attachment opengl_error_mac.png). I have a Macbook Air, with Intel HD Graphics 6000, which supports opengl 3.1 and 3.2 features.
Can you please help me?
I'm afraid there's no help to be had. With OpenGL 3.1 and later, the version number is not enough information. There are different "flavors" of OpenGL. Just because your card "supports opengl 3.1 and 3.2 features" doesn't mean that a game that wants "OpenGL 3.1+" can be satisfied. The game presumably needs the "compatibility" flavor of OpenGL 3.1. MacOS doesn't provide that flavor, it only provides the "core" flavor. A game would have to specifically look for the core flavor in order to get it. Your game is not prepared to work with the core flavor of OpenGL 3.1+. So, it can't work on MacOS and there's nothing that Wine can do about that.
https://bugs.winehq.org/show_bug.cgi?id=38158
--- Comment #7 from fulopm mrkflp@gmail.com --- Sad. I have to use VMWare, because it is the only VM technology where I can play that game. Hope Apple will give more information about their OpenGL implementation to other vendors in the future.
https://bugs.winehq.org/show_bug.cgi?id=38158
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=38158
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #8 from joaopa jeremielapuree@yahoo.fr --- Is this problem invalid then?