note about adapter

This commit is contained in:
Quaternions 2023-10-20 17:54:01 -07:00
parent c1bc67fd3a
commit 8cc86d88fc

View File

@ -239,6 +239,7 @@ impl GraphicsContextSetup{
// Once winit is fixed, the detection conditions here can be removed.
// https://github.com/rust-windowing/winit/issues/2876
// this has been fixed if I update winit (remove the if statement and only use the else case)
//drop adapter when you delete this
let max_dimension=graphics_context.adapter.limits().max_texture_dimension_2d;
if max_dimension<size.width||max_dimension<size.height{
println!(