glutin icon indicating copy to clipboard operation
glutin copied to clipboard

Creating WindowedContext from an existing winit::Window

Open notdanilo opened this issue 4 years ago • 1 comments

Is there any way to create a WindowedContext from an existing winit::Window?

I am developing a GPU library which I plan to support both Vulkan and OpenGL as its backend. The only commonplace for creating their contexts is winit.

notdanilo avatar Feb 09 '21 23:02 notdanilo

I just discovered about RawContext.

But even the example isn't working.

Running cargo run --example raw_context returns:

thread 'main' panicked at 'explicit panic', glutin/src/platform_impl/unix/x11.rs:157:34

notdanilo avatar Feb 10 '21 19:02 notdanilo

Fixed in #1435.

kchibisov avatar Sep 03 '22 06:09 kchibisov