Bläddra i källkod

Fix shader compilation

Daniele Bartolini 11 år sedan
förälder
incheckning
ced8116b89
1 ändrade filer med 10 tillägg och 4 borttagningar
  1. 10 4
      engine/renderers/shader.cpp

+ 10 - 4
engine/renderers/shader.cpp

@@ -100,8 +100,11 @@ namespace shader_resource
 			"--varyingdef", varying_def_path.c_str(),
 			"--varyingdef", varying_def_path.c_str(),
 			"--type", "vertex",
 			"--type", "vertex",
 			"--platform", _scplatform[opts.platform()],
 			"--platform", _scplatform[opts.platform()],
-#if CROWN_PLATFORM_WINDOWS
-			"--profile", "vs_3_0",
+			"--profile",
+#if CROWN_PLATFORM_LINUX
+			"120",
+#elif CROWN_PLATFORM_WINDOWS
+			"vs_3_0",
 #endif
 #endif
 			NULL
 			NULL
 		};
 		};
@@ -116,8 +119,11 @@ namespace shader_resource
 			"--varyingdef", varying_def_path.c_str(),
 			"--varyingdef", varying_def_path.c_str(),
 			"--type", "fragment",
 			"--type", "fragment",
 			"--platform", _scplatform[opts.platform()],
 			"--platform", _scplatform[opts.platform()],
-#if CROWN_PLATFORM_WINDOWS
-			"--profile", "ps_3_0",
+			"--profile",
+#if CROWN_PLATFORM_LINUX
+			"120",
+#elif CROWN_PLATFORM_WINDOWS
+			"ps_3_0",
 #endif
 #endif
 			NULL
 			NULL
 		};
 		};