Sfoglia il codice sorgente

iOS: fix shader compilation with metal

Alex Szpakowski 3 anni fa
parent
commit
caf89998cc
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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";