-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Panic: called glDebugMessageCallback but it was not loaded #2540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I got the same issue in Windows, can't seem to get around it without |
This feels like either a glow or gl46 issue. @grovesNL thoughts? |
We should probably guard this call by GL version since it's not always available, see the table version in https://registry.khronos.org/OpenGL-Refpages/es3/html/glDebugMessageCallback.xhtml for example |
We could also add a helper function to glow like |
Fresh clone on Windows 10 & NVIDIA RTX 3080 driver 527.56, can confirm this issue is still happening. (EDTI: Hello sample fails no matter what.) |
If setting the environment variable |
The issue is we call the function on context creation, which happens unconditionally even when running on vulkan. |
Okay so I think this is a naming problem - https://github.com/gfx-rs/wgpu/blob/master/wgpu-hal/src/gles/egl.rs#L885-L889 is where we call it, and supports_debug just checks for GL_KHR_debug. |
@askeladd123 and those running into this issue following the example code from here: https://sotrh.github.io/learn-wgpu/beginner/tutorial2-surface/#render, I found you can change the backend on the wgpu instance you create in code by changing it from
I was finding that setting the environment variable didn't work for me either. |
Fixed in the glow 0.12.1 release |
Description
The examples are failing to run in recent master (on Windows). I bisected it down to 476b6a1
Repro steps
cargo run --example cube
Expected vs observed behavior
Should run normally, instead it panics with
thread 'main' panicked at 'called glDebugMessageCallback but it was not loaded.'
It runs if I set explicitly set
WGPU_BACKEND
to vulkan or dx12, but looks like it's now defaulting to gl for some reasonExtra materials
Platform
Windows 11, NVIDIA
The text was updated successfully, but these errors were encountered: