mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Improve OpenGL error detection and reporting in egui_glow
May help to diagnose https://github.com/emilk/egui/issues/1087
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#![allow(unsafe_code)]
|
||||
use crate::misc_util::glow_debug_print;
|
||||
use crate::misc_util::glow_print;
|
||||
use glow::HasContext;
|
||||
use std::convert::TryInto;
|
||||
|
||||
@@ -17,7 +17,7 @@ impl ShaderVersion {
|
||||
let shading_lang_string =
|
||||
unsafe { gl.get_parameter_string(glow::SHADING_LANGUAGE_VERSION) };
|
||||
let shader_version = Self::parse(&shading_lang_string);
|
||||
glow_debug_print(format!(
|
||||
glow_print(format!(
|
||||
"Shader version: {:?} ({:?})",
|
||||
shader_version, shading_lang_string
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user