Skip to content

Commit b0143f4

Browse files
author
Raymond Fei
committed
fix render
1 parent 1366f14 commit b0143f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apic2d/fluidsim.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ void FluidSim::render() {
10351035
if (draw_velocities_) {
10361036
glColor3f(1, 0, 0);
10371037
scalar crit = dx_ * dx_ * 100.0f;
1038+
glBegin(GL_LINES);
10381039
for (int j = 0; j < nj_; ++j) {
10391040
for (int i = 0; i < ni_; ++i) {
10401041
Vector2s pos = Vector2s((i + 0.5) * dx_, (j + 0.5) * dx_) + origin_;
@@ -1046,6 +1047,7 @@ void FluidSim::render() {
10461047
}
10471048
}
10481049
}
1050+
glEnd();
10491051
}
10501052

10511053
if (draw_particles_) {

0 commit comments

Comments
 (0)