Daniele Bartolini 1 год назад
Родитель
Сommit
576872208d
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/changelog.rst
  2. 1 1
      src/resource/shader_resource.cpp

+ 1 - 0
docs/changelog.rst

@@ -28,6 +28,7 @@ Changelog
 * Data Compiler: Added per-platform texture output settings.
 * Data Compiler: Fixed existence/redefinition checks for samplers.
 * Data Compiler: Added the ability to inherit render states via the ``inherit`` property.
+* Data Compiler: Windows: Fixed shader compilation.
 * Data Compiler: Improved data writing robustness.
 * Lua API: Added ``Device.screenshot()`` and ``screenshot()`` callback, see :doc:`lua_api` for details.
 * Lua API: Added ``Material.set_texture()``.

+ 1 - 1
src/resource/shader_resource.cpp

@@ -490,7 +490,7 @@ namespace shader_resource_internal
 			argv[12] = "150"; // OpenGL 3.2+
 		} else if (strcmp(platform, "windows") == 0) {
 			argv[11] = "--profile";
-			argv[12] = ((strcmp(type, "vertex") == 0) ? "vs_4_0" : "ps_4_0");
+			argv[12] = "s_4_0";
 		} else {
 			return -1;
 		}