example: remove frame_ix double semicolon

This commit is contained in:
Zack Buhman 2024-05-19 08:42:07 -05:00
parent 39e97a3f1b
commit a0d516803b
20 changed files with 20 additions and 20 deletions

View File

@ -312,7 +312,7 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
theta += (2.f * pi) / 720.f; theta += (2.f * pi) / 720.f;
} }
} }

View File

@ -288,6 +288,6 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -329,6 +329,6 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -206,6 +206,6 @@ void main()
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -229,7 +229,7 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
if (frame_ix == 10 && dumped == false) { if (frame_ix == 10 && dumped == false) {
dump(); dump();

View File

@ -322,6 +322,6 @@ void main()
constexpr float half_degree = 0.01745329f / 2; constexpr float half_degree = 0.01745329f / 2;
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -301,6 +301,6 @@ void main()
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -212,6 +212,6 @@ void main()
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -286,6 +286,6 @@ void main()
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -182,6 +182,6 @@ void main()
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -229,6 +229,6 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -263,6 +263,6 @@ void main()
constexpr float half_degree = 0.01745329f / 2; constexpr float half_degree = 0.01745329f / 2;
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -446,6 +446,6 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -232,7 +232,7 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
theta += half_degree; theta += half_degree;
} }
} }

View File

@ -134,6 +134,6 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -251,7 +251,7 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
if (frame_ix > 10) if (frame_ix > 10)
break; break;

View File

@ -202,6 +202,6 @@ void main()
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -175,6 +175,6 @@ void main()
constexpr float half_degree = 0.01745329f / 2.f; constexpr float half_degree = 0.01745329f / 2.f;
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }

View File

@ -212,7 +212,7 @@ void main()
core_flip(frame_ix); core_flip(frame_ix);
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
delta += pi * 2 / 360; delta += pi * 2 / 360;
} }
} }

View File

@ -312,6 +312,6 @@ void main()
while (spg_status::vsync(holly.SPG_STATUS)); while (spg_status::vsync(holly.SPG_STATUS));
theta += half_degree; theta += half_degree;
frame_ix = (frame_ix + 1) & 1;; frame_ix = (frame_ix + 1) & 1;
} }
} }