From 6df1edaa10f051e5c7774259768338fd69b9e124 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 2 Sep 2018 13:35:09 +0100 Subject: [PATCH] Remove unused lambda capture variable --- qrenderdoc/Windows/ConstantBufferPreviewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/ConstantBufferPreviewer.cpp b/qrenderdoc/Windows/ConstantBufferPreviewer.cpp index 6bea5b5aa..b05a4c7d2 100644 --- a/qrenderdoc/Windows/ConstantBufferPreviewer.cpp +++ b/qrenderdoc/Windows/ConstantBufferPreviewer.cpp @@ -145,10 +145,10 @@ void ConstantBufferPreviewer::OnEventChanged(uint32_t eventId) } else { - m_Ctx.Replay().AsyncInvoke([this, entryPoint, offs, prevShader, wasEmpty](IReplayController *r) { + m_Ctx.Replay().AsyncInvoke([this, entryPoint, offs, wasEmpty](IReplayController *r) { rdcarray vars = r->GetCBufferVariableContents( m_shader, entryPoint.toUtf8().data(), m_slot, m_cbuffer, offs); - GUIInvoke::call(this, [this, vars, prevShader, wasEmpty] { + GUIInvoke::call(this, [this, vars, wasEmpty] { // save this state to reapply if we don't already have an internal expansion for the new // shader, since this means two shaders with the same or similar constants will preserve