Daniele Bartolini 10 år sedan
förälder
incheckning
0d45fa7ced
1 ändrade filer med 8 tillägg och 5 borttagningar
  1. 8 5
      src/resource/shader_resource.cpp

+ 8 - 5
src/resource/shader_resource.cpp

@@ -326,11 +326,14 @@ namespace shader_resource
 		args << " --type " << type;
 		args << " --type " << type;
 		args << " --platform " << platform;
 		args << " --platform " << platform;
 		args << " --profile ";
 		args << " --profile ";
-#if CROWN_PLATFORM_LINUX
-		args <<	"120";
-#elif CROWN_PLATFORM_WINDOWS
-		args << ((strcmp(type, "vertex") == 0) ? "vs_3_0" : "ps_3_0");
-#endif
+		if (strcmp("linux", platform) == 0)
+		{
+			args <<	"120";
+		}
+		else if (strcmp("windows", platform) == 0)
+		{
+			args << ((strcmp(type, "vertex") == 0) ? "vs_3_0" : "ps_3_0");
+		}
 
 
 		return os::execute_process(SHADERC_PATH, c_str(args), output);
 		return os::execute_process(SHADERC_PATH, c_str(args), output);
 	}
 	}