Skip to content

Commit c362b85

Browse files
authored
Merge pull request #978 from BretHudson/fix-glsl-for-loop
Typo: Switch "let" to "int" to make GLSL code valid
2 parents 547cb9d + b6ab5ab commit c362b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/tutorials/en/intro-to-shaders.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ int maxVal = 10;
289289
if (something) {
290290
  maxVal = 20;
291291
}
292-
for (let i = 0; i < 20; i++) {
292+
for (int i = 0; i < 20; i++) {
293293
  if (i == maxVal) {
294294
    break;
295295
  }

0 commit comments

Comments
 (0)