Commit d21656c1 by Geoff Lang

Fixed uninitialized local variable warning.

TRAC #23619 Signed-off-by: Shannon Woods Author: Geoff Lang
parent 57e713e8
......@@ -102,7 +102,7 @@ FenceSync::FenceSync(rx::Renderer *renderer, GLuint id)
{
mFence = renderer->createFence();
LARGE_INTEGER counterFreqency;
LARGE_INTEGER counterFreqency = { 0 };
ASSERT(QueryPerformanceFrequency(&counterFreqency));
mCounterFrequency = counterFreqency.QuadPart;
......@@ -140,7 +140,7 @@ GLenum FenceSync::clientWait(GLbitfield flags, GLuint64 timeout)
return GL_TIMEOUT_EXPIRED;
}
LARGE_INTEGER currentCounter;
LARGE_INTEGER currentCounter = { 0 };
ASSERT(QueryPerformanceCounter(&currentCounter));
LONGLONG timeoutInSeconds = static_cast<LONGLONG>(timeout) * static_cast<LONGLONG>(1000000ll);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment