aboutsummaryrefslogtreecommitdiffstats
path: root/examples/support
diff options
context:
space:
mode:
Diffstat (limited to 'examples/support')
-rw-r--r--examples/support/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/support/mod.rs b/examples/support/mod.rs
index 12aa68c..1e61165 100644
--- a/examples/support/mod.rs
+++ b/examples/support/mod.rs
@@ -57,6 +57,8 @@ impl Context {
self.gl.Color3f(0.0, 0.0, 1.0);
self.gl.Vertex2f(0.5, -0.5);
self.gl.End();
+
+ self.gl.Flush();
}
#[cfg(target_os = "android")]
@@ -78,6 +80,8 @@ impl Context {
self.gl.DrawArrays(gl::TRIANGLES, 0, 3);
self.gl.DisableClientState(gl::VERTEX_ARRAY);
self.gl.DisableClientState(gl::COLOR_ARRAY);
+
+ self.gl.Flush();
}
}