Fix D3D warning (#10580) a3e22e1322

* Always set sampler even if no texture

* Add scope block to sampler setting

* remove empty line

Co-authored-by: John White <aliasbinman@gmail.com>
This commit is contained in:
aliasbinman
2025-09-12 19:17:29 +00:00
parent a729a7337e
commit 5eac000d64
2 changed files with 4 additions and 1 deletions

View File

@@ -1 +1 @@
3afebf3d4f68fc7e0d206cc02390a5064aa842e4
a3e22e13229d586ac6aa8c852f8940418acd871d

View File

@@ -1878,6 +1878,9 @@ void RenderContextD3DImpl::flush(const FlushDescriptor& desc)
m_gpuContext->PSSetShaderResources(IMAGE_TEXTURE_IDX,
1,
imageTextureD3D->srvAddressOf());
}
{
// we should never get a sampler option that is greater then our
// array size
assert(batch.imageSampler.asKey() <