mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Remove call to glViewport after win32 initialization
This commit is contained in:
parent
d6fec79334
commit
d870fa7ffa
|
@ -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;
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue