print gl extensions list on start
@@ -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,
