Explorar o código

Fix shader compiler

Daniele Bartolini %!s(int64=11) %!d(string=hai) anos
pai
achega
e0fba2d433
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      engine/renderers/shader.cpp

+ 7 - 0
engine/renderers/shader.cpp

@@ -29,6 +29,7 @@ OTHER DEALINGS IN THE SOFTWARE.
 #include "json_parser.h"
 #include "os.h"
 #include "reader_writer.h"
+#include "config.h"
 
 namespace crown
 {
@@ -70,6 +71,9 @@ namespace shader_resource
 			"--type", "vertex",
 			"--platform", opts.platform(),
 			"--verbose",
+#if CROWN_PLATFORM_WINDOWS
+			"--profile", "vs_3_0",
+#endif
 			NULL
 		};
 		os::execute_process(compile_vs);
@@ -83,6 +87,9 @@ namespace shader_resource
 			"--type", "fragment",
 			"--platform", opts.platform(),
 			"--verbose",
+#if CROWN_PLATFORM_WINDOWS
+			"--profile", "ps_3_0",
+#endif
 			NULL
 		};
 		os::execute_process(compile_fs);