print gl extensions list on start

This commit is contained in:
Dmitry
2022-05-13 17:41:58 +03:00
parent 9ac657bd4e
commit cf74a44002
+7
View File
@@ -81,6 +81,7 @@ use crate::{
utils::log::{Log, MessageKind},
};
use fxhash::FxHashMap;
use glow::HasContext;
use serde::{Deserialize, Serialize};
use std::{
cell::RefCell,
@@ -1059,6 +1060,12 @@ impl Renderer {
// it must have constant address.
let mut state = Box::new(PipelineState::new(context));
// Dump available GL extensions to the log, this will help debugging graphical issues.
Log::info(format!(
"Supported GL Extensions: {:?}",
state.gl.supported_extensions()
));
Ok(Self {
backbuffer: FrameBuffer::backbuffer(&mut state),
frame_size,