aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-29 19:00:32 +0100
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-29 19:01:58 +0100
commitbbcb4c8beab5de681f2f19ba30160e6b5ead3a32 (patch)
tree9b9d211485999bddae3bed5cd06460d6300c68b0 /src
parent089f47821c3358da83be22752e75d956ebe2bea5 (diff)
downloadglutin-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 'src')
-rw-r--r--src/win32/ffi.rs3
-rw-r--r--src/win32/mod.rs3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/win32/ffi.rs b/src/win32/ffi.rs
index 71f8d55..1d8156d 100644
--- a/src/win32/ffi.rs
+++ b/src/win32/ffi.rs
@@ -720,9 +720,6 @@ extern "system" {
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms633519(v=vs.85).aspx
pub fn GetWindowRect(hWnd: HWND, lpRect: *mut RECT) -> BOOL;
- //
- pub fn glFlush();
-
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms684175(v=vs.85).aspx
pub fn LoadLibraryW(lpFileName: LPCWSTR) -> HMODULE;
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index 3cfdc7e..35e7169 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -228,9 +228,6 @@ impl Window {
/// See the docs in the crate root file.
pub fn swap_buffers(&self) {
unsafe {
- // calling glFlush is necessary on Windows 8
- ffi::glFlush();
-
ffi::SwapBuffers(self.hdc);
}
}