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:
parent
46e8161649
commit
900edf55b5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user