aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-08-22 11:26:47 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-08-22 11:26:47 +0200
commitd870fa7ffa1ff5e7a6a13048ada943aea51a04a6 (patch)
tree7fa90d32082c0d6186f5ac4bd5b81aae82d41071
parentd6fec79334e5daf9d442b50860d786a28cf46b3d (diff)
downloadglutin-d870fa7ffa1ff5e7a6a13048ada943aea51a04a6.tar.gz
glutin-d870fa7ffa1ff5e7a6a13048ada943aea51a04a6.zip
Remove call to glViewport after win32 initialization
-rw-r--r--src/win32/ffi.rs3
-rw-r--r--src/win32/init.rs8
2 files changed, 0 insertions, 11 deletions
diff --git a/src/win32/ffi.rs b/src/win32/ffi.rs
index 7f06064..6bf0e2d 100644
--- a/src/win32/ffi.rs
+++ b/src/win32/ffi.rs
@@ -722,9 +722,6 @@ extern "system" {
//
pub fn glFlush();
- //
- pub fn glViewport(x: libc::c_int, y: libc::c_int, w: libc::c_int, h: libc::c_int);
-
// 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/init.rs b/src/win32/init.rs
index 9b6ec81..365bcb8 100644
--- a/src/win32/init.rs
+++ b/src/win32/init.rs
@@ -349,14 +349,6 @@ pub fn new_window(builder: WindowBuilder) -> Result<Window, String> {
is_closed: AtomicBool::new(false),
};
- // calling glViewport
- unsafe {
- use libc;
- let dimensions = window.get_inner_size().unwrap();
- ffi::glViewport(0, 0, dimensions.val0() as libc::c_int,
- dimensions.val1() as libc::c_int);
- }
-
// sending
tx.send(Ok(window));