1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d9] Only create sampling image views if the image supports sampling

Fixes validation error
This commit is contained in:
Robin Kertels 2024-09-20 00:24:07 +02:00 committed by Philip Rebohle
parent 46e8161649
commit 900edf55b5

View File

@ -72,7 +72,8 @@ namespace dxvk {
ExportImageInfo();
}
CreateSampleView(0);
if ((m_image->info().usage & VK_IMAGE_USAGE_SAMPLED_BIT) != 0)
CreateSampleView(0);
if (!IsManaged()) {
m_size = m_image->memory().length();