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 {
|
pub fn new(gl: &glow::Context) -> Pipeline {
|
||||||
let version = gl.version();
|
let version = gl.version();
|
||||||
if version.is_embedded || version.major == 2 {
|
if version.is_embedded || version.major == 2 {
|
||||||
|
log::info!("Mode: compatibility");
|
||||||
Pipeline::Compatibility(compatibility::Pipeline::new(gl))
|
Pipeline::Compatibility(compatibility::Pipeline::new(gl))
|
||||||
} else {
|
} else {
|
||||||
|
log::info!("Mode: core");
|
||||||
Pipeline::Core(core::Pipeline::new(gl))
|
Pipeline::Core(core::Pipeline::new(gl))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,13 @@ impl iced_graphics::window::GLCompositor for Compositor {
|
||||||
) -> Result<(Self, Self::Renderer), Error> {
|
) -> Result<(Self, Self::Renderer), Error> {
|
||||||
let gl = glow::Context::from_loader_function(loader_function);
|
let gl = glow::Context::from_loader_function(loader_function);
|
||||||
|
|
||||||
|
let version = gl.version();
|
||||||
|
log::info!("Version: {:?}", version);
|
||||||
|
log::info!("Embedded: {}", version.is_embedded);
|
||||||
|
|
||||||
|
let renderer = gl.get_parameter_string(glow::RENDERER);
|
||||||
|
log::info!("Renderer: {}", renderer);
|
||||||
|
|
||||||
// Enable auto-conversion from/to sRGB
|
// Enable auto-conversion from/to sRGB
|
||||||
gl.enable(glow::FRAMEBUFFER_SRGB);
|
gl.enable(glow::FRAMEBUFFER_SRGB);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue