Author |
Message |
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5546
|
A problem with shaders failing to load. In linden/indra/llrender/llgl.cpp, lines 412 to 419, change to read: I.e. allow up to GLSL v1.30 instead of v1.20...
|
2023-03-12 21:09:28 |
|
|
linyifei
Joined: 2012-01-19 03:18:40 Posts: 196 Location: Sydney, Australia (UTC +10)
|
So very true. It seems that every new release takes Apple further from why I started with OS/X in the first place. I think this will be my last Apple. I have applied both the patches that Henri specified here and here, and I get the same blank black screen that Catten did. Since I can't see to access preferences in 1.30.2.5 in order to do the Enable Core GL Profile toggle, I logged in with 1.30.2.3 to do it, intending to log back in with .5 after the viewer restart. I found that in my preferences, that checkbox is greyed out (unchecked) so I can't change it.
|
2023-03-13 01:00:56 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5546
|
Please, post the log: there will be info in it about which shader fails to load. You can instead launch the viewer from a terminal and pass it the options: "--set RenderGLCoreProfile 1", but I doubt very much it would make a difference for shaders loading (this is obviously some change needed in one or several of them to make macOS happy). More interesting, however, would be to start v1.30.2.3 (just at the login screen), set DebugGLOnRestart to TRUE from the debug settings floater, then close the viewer and start v1.30.2.5: it would give us much more detailed info about what is going on on OpenGL initialization.
|
2023-03-13 08:30:06 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5546
|
I made a patch, that fixes other GL 3.2 issues with macOS (and yes, core profile must be enabled for it to work: I found the corresponding commit in LL's PBR viewer citing black screen with core off). You will find that patch file attached: apply it to clean v1.30.2.5 sources, like so: Then build the viewer, and see how it fares...
|
2023-03-13 11:36:03 |
|
|
Catten
Joined: 2011-09-17 11:12:19 Posts: 361
|
I've tried several patched builds here, but it's the same result. A black screen at startup :/
|
2023-03-13 19:23:53 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5546
|
Try this with the patched version of the sources: line 733 of linden/indra/llrender/llglslshader.cpp, replace "#if !LL_DARWIN" with "#if 1", and recompile. If it still does not work, please, start v1.30.2.3 (just at the login screen), set DebugGLOnRestart to TRUE from the debug settings floater, then close the viewer and start the patched build of v1.30.2.5: it will give us much more detailed info in the log about what is going on at the shaders loading step..
|
2023-03-13 20:07:22 |
|
|
linyifei
Joined: 2012-01-19 03:18:40 Posts: 196 Location: Sydney, Australia (UTC +10)
|
Your wish is my command.
|
2023-03-13 21:40:07 |
|
|
Catten
Joined: 2011-09-17 11:12:19 Posts: 361
|
It's the same issue with #if 1. I've uploaded a log file with GL Debug info
|
2023-03-13 22:03:52 |
|
|
linyifei
Joined: 2012-01-19 03:18:40 Posts: 196 Location: Sydney, Australia (UTC +10)
|
I have just done this, but the compressed file is too large to attach to this message. Please try this link: https://drive.google.com/file/d/1ivlkYN ... pgxLF/view
|
2023-03-13 22:05:35 |
|
|
Henri Beauchamp
Joined: 2009-03-17 18:42:51 Posts: 5546
|
Excellent ! We get 'version '130' is not supported' (strange, they do use if with macOS OpenGL v3.2 core profile in the PBR viewer)... Let's revert back to 120 ! With the patched sources, linden/indra/llrender/llgl.cpp, line 414, replace "# if LL_DARWIN_GL3" with "# if 0", and let's see what happens... EDIT: and apparently, when searching the web for "macos glsl version '130' is not supported", I found out we are not alone with this issue, and macOS would want 140 instead... So, if the above does not work, please revert the revert (let it use "# if LL_DARWIN_GL3" line 414 of linden/indra/llrender/llgl.cpp), and instead change line 723 of indra/llrender/llshadermgr.cpp to read:
|
2023-03-13 22:30:42 |
|
|