File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ template newShaderStatic*(computePath: string): Shader =
216
216
# # so it is compiled into the binary.
217
217
const
218
218
computeCode = staticRead(computePath)
219
- dir = currentSourcePath()
220
- computePathFull = dir.parentDir() / computePath
219
+ dir = currentSourcePath().parentDir()
220
+ computePathFull = dir / computePath
221
221
newShader((computePathFull, computeCode))
222
222
223
223
proc newShader* (vert, frag: (string , string )): Shader =
@@ -241,9 +241,9 @@ template newShaderStatic*(vertPath, fragPath: string): Shader =
241
241
const
242
242
vertCode = staticRead(vertPath)
243
243
fragCode = staticRead(fragPath)
244
- dir = currentSourcePath()
245
- vertPathFull = dir.parentDir() / vertPath
246
- fragPathFull = dir.parentDir() / fragPath
244
+ dir = currentSourcePath().parentDir()
245
+ vertPathFull = dir / vertPath
246
+ fragPathFull = dir / fragPath
247
247
newShader((vertPathFull, vertCode), (fragPathFull, fragCode))
248
248
249
249
proc hasUniform* (shader: Shader, name: string ): bool =
You can’t perform that action at this time.
0 commit comments