1
0
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:
Emil Ernerfeldt
2022-01-09 23:04:00 +01:00
parent 611eaa52e8
commit 650057dd4a
5 changed files with 43 additions and 36 deletions

View File

@@ -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
));