From e73044fbd51f9c8f15eb6bd60248887ccd8b16f0 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 18 Feb 2025 17:32:20 -0500 Subject: Don't error please --- src/context.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/context.rs') diff --git a/src/context.rs b/src/context.rs index 2171053..9f0d4ad 100644 --- a/src/context.rs +++ b/src/context.rs @@ -216,4 +216,13 @@ impl Context { self.gl.disable(glow::CULL_FACE); } } + + pub fn check_error(&self) { + unsafe { + let err = self.gl.get_error(); + if err != 0 { + log::warn!("gl error: {}", err); + } + } + } } -- cgit v1.2.3