Page 1 of 1

Shaders failed to compile on macOS High Sierra [r734]

PostPosted: Sun Jun 17, 2018 6:41 pm
by christian776
I guess this was to be expected, but shader compilation fails on macOS High Sierra due to the poor OpenGL support.

I've just was able to compile Supermodel r734 but when running LA Machineguns, I've got the following errors.

Code: Select all
Supermodel: A Sega Model 3 Arcade Emulator (Version 0.3a-WIP)
Copyright 2011-2018 by Bart Trzynadlowski, Nik Henson, Ian Curtis,
                       Harry Tuttle, and Spindizzi

    Title:          L.A. Machineguns: Rage of the Machines (Japan)
    ROM Set:        lamachin
    Developer:      Sega
    Year:           1998
    Stepping:       2.1
    Extra Hardware:

Error: Vertex shader failed to compile. Your OpenGL driver said:
ERROR: 0:9: ';' : syntax error: syntax error

Error: Fragment shader failed to compile. Your OpenGL driver said:
ERROR: 0:40: ';' : syntax error: syntax error

Error: Failed to link shader objects. Your OpenGL driver said:
ERROR: One or more attached shaders not successfully compiled


ERROR: 0:14: ';' : syntax error: syntax error

ERROR: 0:21: ';' : syntax error: syntax error

ERROR: One or more attached shaders not successfully compiled

ERROR: 0:14: ';' : syntax error: syntax error

ERROR: 0:12: ';' : syntax error: syntax error

ERROR: One or more attached shaders not successfully compiled

Re: Shaders failed to compile on macOS High Sierra [r734]

PostPosted: Mon Jun 18, 2018 1:00 am
by Ian
Try removing the ; after the last } in the r3dframebuffer shaders. No idea why it ended up there or why the NVidia glsl compiler doesn't complain about it. Should be 4 to remove, one for each shader. That's before the glsl bracket at the end.

Re: Shaders failed to compile on macOS High Sierra [r734]

PostPosted: Mon Jun 18, 2018 4:57 am
by Ian
try r735
hopefully should fix the issues

Re: Shaders failed to compile on macOS High Sierra [r734]

PostPosted: Mon Jun 18, 2018 12:47 pm
by christian776
thanks, that worked flawlessly !