Browse Source

iOS: fix shader compilation with metal

Alex Szpakowski 3 years ago
parent
commit
caf89998cc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/modules/graphics/metal/Shader.mm

+ 5 - 0
src/modules/graphics/metal/Shader.mm

@@ -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";