Comment out secondary backends

This commit is contained in:
Imbris 2020-12-21 21:18:05 -05:00 committed by Avi Weinstock
parent b5e81ba9bb
commit 247fde8e8a

View File

@ -294,7 +294,11 @@ impl Renderer {
let dims = window.inner_size();
let instance = wgpu::Instance::new(wgpu::BackendBit::PRIMARY | wgpu::BackendBit::SECONDARY);
// TODO: fix panic on wayland with opengl?
// TODO: fix backend defaulting to opengl on wayland.
let instance = wgpu::Instance::new(
wgpu::BackendBit::PRIMARY, /* | wgpu::BackendBit::SECONDARY */
);
// This is unsafe because the window handle must be valid, if you find a way to
// have an invalid winit::Window then you have bigger issues