mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
render/vulkan: fix format features check for shm textures
We were checking whether any of the features was supported. We need to check if all of them are. This makes the check consistent with query_modifier_support() above.
This commit is contained in:
parent
ed018a3ee2
commit
30769723c1
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ void vulkan_format_props_query(struct wlr_vk_device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
// non-dmabuf texture properties
|
// non-dmabuf texture properties
|
||||||
if (fmtp.formatProperties.optimalTilingFeatures & tex_features) {
|
if ((fmtp.formatProperties.optimalTilingFeatures & tex_features) == tex_features) {
|
||||||
fmti.pNext = NULL;
|
fmti.pNext = NULL;
|
||||||
ifmtp.pNext = NULL;
|
ifmtp.pNext = NULL;
|
||||||
fmti.tiling = VK_IMAGE_TILING_OPTIMAL;
|
fmti.tiling = VK_IMAGE_TILING_OPTIMAL;
|
||||||
|
|
Loading…
Reference in a new issue