mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
Normalize GL language versions (#4283)
This commit is contained in:
1 parent
bb00d594f8
commit
85cab49c53
2 files changed
+2
-2
No files matched your search
@@ -230,7 +230,7 @@ impl super::Adapter {
|
||||
|
||||
let shading_language_version = {
|
||||
let sl_version = unsafe { gl.get_parameter_string(glow::SHADING_LANGUAGE_VERSION) };
|
||||
log::info!("SL version: {}", &sl_version);
|
||||
log::trace!("SL version: {}", &sl_version);
|
||||
if full_ver.is_some() {
|
||||
let (sl_major, sl_minor) = Self::parse_full_version(&sl_version).ok()?;
|
||||
let mut value = sl_major as u16 * 100 + sl_minor as u16 * 10;
|
||||
|
||||
@@ -405,7 +405,7 @@ impl crate::Instance<super::Api> for Instance {
|
||||
}
|
||||
|
||||
if desc.flags.contains(InstanceFlags::VALIDATION) && gl.supports_debug() {
|
||||
log::info!("Enabling GL debug output");
|
||||
log::debug!("Enabling GL debug output");
|
||||
unsafe { gl.enable(glow::DEBUG_OUTPUT) };
|
||||
unsafe { gl.debug_message_callback(super::gl_debug_message_callback) };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user