diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-10-29 19:00:32 +0100 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-10-29 19:01:58 +0100 |
commit | bbcb4c8beab5de681f2f19ba30160e6b5ead3a32 (patch) | |
tree | 9b9d211485999bddae3bed5cd06460d6300c68b0 /examples | |
parent | 089f47821c3358da83be22752e75d956ebe2bea5 (diff) | |
download | glutin-bbcb4c8beab5de681f2f19ba30160e6b5ead3a32.tar.gz glutin-bbcb4c8beab5de681f2f19ba30160e6b5ead3a32.zip |
Remove call to glFlush() before swap_buffers
We may not want to call `swap_buffers` in the same thread as the
current thread, so we're moving the call to `glFlush` out of the scope
of glutin.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/support/mod.rs | 4 |
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(); } } |