mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Limit BufferStore to maximum of the number of components in the format
This commit is contained in:
@@ -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