mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix DXIL global samplers resize() which should have been reserve()
This commit is contained in:
@@ -8913,7 +8913,7 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain
|
||||
|
||||
// Create the variables for Samplers
|
||||
count = reflection.samplers.size();
|
||||
m_GlobalState.samplers.resize(count);
|
||||
m_GlobalState.samplers.reserve(count);
|
||||
for(uint32_t i = 0; i < count; i++)
|
||||
{
|
||||
ShaderSampler sampler = reflection.samplers[i];
|
||||
|
||||
Reference in New Issue
Block a user