mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add some debug! logs to the glutin port
This commit is contained in:
parent
8e95efb8b2
commit
a7ed8f7e5a
1 changed files with 4 additions and 0 deletions
|
@ -134,6 +134,7 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
let context = unsafe {
|
let context = unsafe {
|
||||||
|
debug!("Making window {:?} current", context.window().id());
|
||||||
context.make_current().expect("Couldn't make window current")
|
context.make_current().expect("Couldn't make window current")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -173,6 +174,7 @@ impl Window {
|
||||||
|
|
||||||
context.make_not_current();
|
context.make_not_current();
|
||||||
|
|
||||||
|
debug!("Created window {:?}", context.window().id());
|
||||||
let window = Window {
|
let window = Window {
|
||||||
gl_context: RefCell::new(context),
|
gl_context: RefCell::new(context),
|
||||||
events_loop,
|
events_loop,
|
||||||
|
@ -480,10 +482,12 @@ impl WindowPortsMethods for Window {
|
||||||
|
|
||||||
impl webxr::glwindow::GlWindow for Window {
|
impl webxr::glwindow::GlWindow for Window {
|
||||||
fn make_current(&mut self) {
|
fn make_current(&mut self) {
|
||||||
|
debug!("Making window {:?} current", self.gl_context.borrow().window().id());
|
||||||
self.gl_context.get_mut().make_current();
|
self.gl_context.get_mut().make_current();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn swap_buffers(&mut self) {
|
fn swap_buffers(&mut self) {
|
||||||
|
debug!("Swapping buffers on window {:?}", self.gl_context.borrow().window().id());
|
||||||
self.gl_context.get_mut().swap_buffers();
|
self.gl_context.get_mut().swap_buffers();
|
||||||
self.gl_context.get_mut().make_not_current();
|
self.gl_context.get_mut().make_not_current();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue