iOS: fix shader compilation with metal

This commit is contained in:
Alex Szpakowski
2022-02-15 21:12:13 -04:00
parent c28731ea80
commit caf89998cc
+5
View File
@@ -308,6 +308,11 @@ Shader::Shader(id<MTLDevice> device, StrongRef<love::graphics::ShaderStage> stag
bool forcedefault = false;
bool forwardcompat = true;
#ifdef LOVE_IOS
defaultversion = 320;
defaultprofile = EEsProfile;
#endif
if (!tshader->parse(&defaultTBuiltInResource, defaultversion, defaultprofile, forcedefault, forwardcompat, EShMsgSuppressWarnings))
{
const char *stagename = "unknown";