GzDoom won't run on Mac

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
JJJJJJJJ

GzDoom won't run on Mac

Post by JJJJJJJJ »

So, I downloaded GzDoom on Mac, took all the correct steps to get it running, and got it running one time. I closed the WAD after playing for a bit and everything seemed fine. But when I went to reopen it, it would just come as a completely black screen and whenever I pressed esc the cursor would flicker. I loaded it up in terminal and after I command+q'd this error message came up:

Init Shader 'No Texture':
Vertex shader:
ERROR: 0:2: 'attribute' : syntax error: syntax error

Fragment shader:
ERROR: 0:2: 'varying' : syntax error: syntax error

Linking:
ERROR: One or more attached shaders not successfully compiled

I have no idea how to fix this and any help would be appreciated!
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: GzDoom won't run on Mac

Post by _mental_ »

Post complete output, with Mac model in particular. I suspect it has some quite old AMD graphics.
JJJJJJJJ

Re: GzDoom won't run on Mac

Post by JJJJJJJJ »

It's a MacBook Air with an Apple M2 chip, 8 GB of memory, running the latest version (Mac OS Ventura13.3.1 (a)), and a 2560 × 1664 display. I have no idea what the graphics card is, but like I said, the game ran perfectly fine with a good framerate and all, so I must have done something in between playing the game and trying to boot it up again.
User avatar
Rachael
Posts: 13571
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: GzDoom won't run on Mac

Post by Rachael »

If it's an M2 it has an integrated graphics chip. Try running it in Vulkan mode. Ventura is quite well past the OpenGL deprecation by Apple, so it's surprising that it even ran at all. But Vulkan should (ideally) run without any issues, since the MoltenVK layer engages with the graphics chip at a lower level.
JJJJJJJJ

Re: GzDoom won't run on Mac

Post by JJJJJJJJ »

Ok, how do I run it in Vulkan mode without GzDoom even starting?
User avatar
Rachael
Posts: 13571
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: GzDoom won't run on Mac

Post by Rachael »

Open Terminal and try typing this: (assuming you installed to /Applications as is typical and recommended)

Code: Select all

/Applications/GZDoom.app/Contents/MacOS/gzdoom +vid_preferbackend 1
JJJJJJJJ

Re: GzDoom won't run on Mac

Post by JJJJJJJJ »

Ok, I'll try that out and let you know if it works!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GzDoom won't run on Mac

Post by Graf Zahl »

That error message looks like it tried to compile GLES shaders, not the ones for regular OpenGL
JJJJJJJJ

Re: GzDoom won't run on Mac

Post by JJJJJJJJ »

Update: It worked! Thank you so much!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GzDoom won't run on Mac

Post by Graf Zahl »

I think for the next version we really need to disable OpenGL on macOS...
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: GzDoom won't run on Mac

Post by _mental_ »

It's better to figure out why it fails before disabling OpenGL completely.

@JJJJJJJJ Did you change some settings during the first run? If so, it could be one option that fails compilation of shaders. Please post your configuration file located at ~/Library/Preferences/gzdoom.ini
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GzDoom won't run on Mac

Post by Graf Zahl »

I won't invest any more work here as GL and Vulkan will soon be separated.
Post Reply

Return to “Closed Bugs [GZDoom]”