mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-29 17:52:18 +01:00
[d3d11] Also validate draw buffer for DispatchIndirect
Oversight.
This commit is contained in:
parent
de7fb51e64
commit
dd7ffbc803
@ -1372,6 +1372,9 @@ namespace dxvk {
|
||||
D3D10DeviceLock lock = LockContext();
|
||||
SetDrawBuffers(pBufferForArgs, nullptr);
|
||||
|
||||
if (!ValidateDrawBufferSize(pBufferForArgs, AlignedByteOffsetForArgs, sizeof(VkDispatchIndirectCommand)))
|
||||
return;
|
||||
|
||||
EmitCs([cOffset = AlignedByteOffsetForArgs]
|
||||
(DxvkContext* ctx) {
|
||||
ctx->dispatchIndirect(cOffset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user