rusticl/mem: set num_samples and num_mip_levels to 0 when importing from GL
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33653>
This commit is contained in:
@@ -1015,8 +1015,8 @@ impl MemBase {
|
||||
image_array_size: gl_mem_props.array_size as usize,
|
||||
image_row_pitch: 0,
|
||||
image_slice_pitch: 0,
|
||||
num_mip_levels: 1,
|
||||
num_samples: 1,
|
||||
num_mip_levels: 0,
|
||||
num_samples: 0,
|
||||
..Default::default()
|
||||
},
|
||||
image_elem_size: gl_mem_props.pixel_size,
|
||||
|
||||
Reference in New Issue
Block a user