mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-26 00:29:00 +00:00
Limit BufferStore to maximum of the number of components in the format
This commit is contained in:
1 parent
4ab1d61f29
commit
2dda3e2f03
1 file changed
+1
-1
@@ -2186,7 +2186,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
|
||||
numComps = 0;
|
||||
// Modify the correct components
|
||||
const uint32_t valueStart = (dxOpCode == DXOp::TextureStore) ? 5 : 4;
|
||||
for(uint32_t c = 0; c < 4; ++c)
|
||||
for(uint32_t c = 0; c < (uint32_t)fmt.numComps; ++c)
|
||||
{
|
||||
if(GetShaderVariable(inst.args[c + valueStart], opCode, dxOpCode, arg))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user