Skip to content

Commit 44e8675

Browse files
committed
small
1 parent 12f73fb commit 44e8675

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fidget/opengl/shaders.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ template newShaderStatic*(computePath: string): Shader =
216216
## so it is compiled into the binary.
217217
const
218218
computeCode = staticRead(computePath)
219-
dir = currentSourcePath()
220-
computePathFull = dir.parentDir() / computePath
219+
dir = currentSourcePath().parentDir()
220+
computePathFull = dir / computePath
221221
newShader((computePathFull, computeCode))
222222

223223
proc newShader*(vert, frag: (string, string)): Shader =
@@ -241,9 +241,9 @@ template newShaderStatic*(vertPath, fragPath: string): Shader =
241241
const
242242
vertCode = staticRead(vertPath)
243243
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
247247
newShader((vertPathFull, vertCode), (fragPathFull, fragCode))
248248

249249
proc hasUniform*(shader: Shader, name: string): bool =

0 commit comments

Comments
 (0)