From f2e8d6c2390e28e4a86eec0b0c319fe19329ea3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 19 Jun 2015 21:08:32 -0700 Subject: [PATCH] Fixed variable shadowing warning. --- src/renderer_d3d9.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer_d3d9.cpp b/src/renderer_d3d9.cpp index 6680e521..981c256e 100644 --- a/src/renderer_d3d9.cpp +++ b/src/renderer_d3d9.cpp @@ -2973,14 +2973,14 @@ namespace bgfx { namespace d3d9 { m_control.consume(1); - uint64_t start; - DX_CHECK(frame.m_start->GetData(&start, sizeof(start), 0) ); + uint64_t timeStart; + DX_CHECK(frame.m_start->GetData(&timeStart, sizeof(timeStart), 0) ); - uint64_t end; - DX_CHECK(frame.m_end->GetData(&end, sizeof(end), 0) ); + uint64_t timeEnd; + DX_CHECK(frame.m_end->GetData(&timeEnd, sizeof(timeEnd), 0) ); m_frequency = freq; - m_elapsed = end - start; + m_elapsed = timeEnd - timeStart; return true; }