changeset 88:d911cacce29e

try: more win compilation fixes
author Sam <sam@basx.dev>
date Sat, 25 Feb 2023 01:21:29 +0700
parents 03447fc1e9aa
children 6e8037c1f655 01ba9f715b7e
files src/semicongine/shader.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/semicongine/shader.nim	Sat Feb 25 01:18:21 2023 +0700
+++ b/src/semicongine/shader.nim	Sat Feb 25 01:21:29 2023 +0700
@@ -58,7 +58,7 @@
       input = shaderSource
   )
 
-  when defined(mingw): # required for crosscompilation, path separators get messed up
+  when defined(mingw) and not defined(windows): # required for crosscompilation, path separators get messed up
     let shaderbinary = staticRead shaderfile.replace("\\", "/")
   else:
     let shaderbinary = staticRead shaderfile