Skip to content

Commit

Permalink
Disable debugging even more
Browse files Browse the repository at this point in the history
  • Loading branch information
dagit committed Sep 13, 2024
1 parent 0155f48 commit 4a996b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widget/glow_canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ fn paint(

// Everything after this point is just the low level opengl rendering code

#[allow(dead_code)]
fn gl_debug(source: u32, typ: u32, id: u32, severity: u32, message: &str) {
let source_name = match source {
glow::DEBUG_SOURCE_API => "API",
Expand Down Expand Up @@ -347,7 +348,7 @@ unsafe fn init_gl_resources(gl: &eframe::glow::Context) -> OpenGLResources {
debug_assert_eq!(gl.get_error(), 0);
//gl.enable(glow::DEBUG_OUTPUT);
debug_assert_eq!(gl.get_error(), 0);
gl.debug_message_callback(gl_debug);
//gl.debug_message_callback(gl_debug);
debug_assert_eq!(gl.get_error(), 0);

let vert = gl.create_shader(glow::VERTEX_SHADER).expect("create vert");
Expand Down

0 comments on commit 4a996b2

Please sign in to comment.