Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Fix windows filepath compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
EtheraelEspeon committed Dec 14, 2023
1 parent e1b9821 commit 8ef6d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Rendering/ShaderManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public ShaderManager(RenderSystem renderSystem, AssetReader assetReader) {
foreach ((string key, string value) in ShaderSources) {
if (!key.EndsWith(".v.glsl"))
continue;

ShaderPreprocessor.Preprocess(value, k => ShaderSources[Path.Combine("shaders", k)], out var vert, out var frag);
ShaderPreprocessor.Preprocess(value, k => ShaderSources["shaders/" + k], out var vert, out var frag);

try {
var shaders = RenderSystem.ResourceFactory.CreateFromSpirv(
Expand Down

0 comments on commit 8ef6d2b

Please sign in to comment.