Log debugging info
This commit is contained in:
parent
381052c50e
commit
94bb03c33c
2 changed files with 9 additions and 0 deletions
|
|
@ -16,8 +16,10 @@ impl Pipeline {
|
|||
pub fn new(gl: &glow::Context) -> Pipeline {
|
||||
let version = gl.version();
|
||||
if version.is_embedded || version.major == 2 {
|
||||
log::info!("Mode: compatibility");
|
||||
Pipeline::Compatibility(compatibility::Pipeline::new(gl))
|
||||
} else {
|
||||
log::info!("Mode: core");
|
||||
Pipeline::Core(core::Pipeline::new(gl))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue