Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Here's a workaround using the let mut glfw = glfw::init(|err, desc| panic!("glfw error [{}]: {}", err, desc))
.expect("failed to initialize glfw");
glfw.window_hint(glfw::WindowHint::ContextVersion(4, 6));
glfw.window_hint(glfw::WindowHint::OpenGlProfile(
glfw::OpenGlProfileHint::Core,
));
glfw.window_hint(glfw::WindowHint::OpenGlForwardCompat(true));
glfw.window_hint(glfw::WindowHint::Visible(false));
let (mut wnd, events) = glfw
.create_window(1, 1, env!("CARGO_PKG_NAME"), glfw::WindowMode::Windowed)
.expect("failed to create glfw window");
let ctx = three_d::Context::from_gl_context(unsafe {
Arc::new(glow::Context::from_loader_function(|s| {
wnd.get_proc_address(s) as *const _
}))
})
.expect("failed to create OpenGL context"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to the headless render example but I get the following:
I changed the HeadlessError enum to get more info about the error by adding
{0}
:Beta Was this translation helpful? Give feedback.
All reactions