1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d9] Always set IsAttachmentOnly for CreateOffscreenPlainSurfaceEx

Surfaces cannot be bound as textures.
This commit is contained in:
Robin Kertels 2024-08-08 17:47:05 +02:00 committed by Joshie
parent 1b172344eb
commit 7f8cfec46f

View File

@ -3891,7 +3891,7 @@ namespace dxvk {
desc.MultiSample = D3DMULTISAMPLE_NONE;
desc.MultisampleQuality = 0;
desc.IsBackBuffer = FALSE;
desc.IsAttachmentOnly = Pool == D3DPOOL_DEFAULT;
desc.IsAttachmentOnly = TRUE;
// Docs: Off-screen plain surfaces are always lockable, regardless of their pool types.
desc.IsLockable = TRUE;