hal/gles: don't expose VERTEX_STORAGE if there is no storage

This commit is contained in:
Dzmitry Malyshau committed 2021-12-01 21:53:31 -05:00
1 parent 82387339ce
commit 9ee5f7ee10
1 file changed
+1
+1
View File
@@ -278,6 +278,7 @@ impl super::Adapter {
downlevel_flags.set(
wgt::DownlevelFlags::VERTEX_STORAGE,
max_storage_block_size != 0
&& max_storage_buffers_per_shader_stage != 0
&& (vertex_shader_storage_blocks != 0 || vertex_ssbo_false_zero),
);
downlevel_flags.set(wgt::DownlevelFlags::FRAGMENT_STORAGE, supports_storage);