summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorRohit Nirmal <rohitnirmal9@gmail.com>2014-09-30 11:43:53 -0400
committerRohit Nirmal <rohitnirmal9@gmail.com>2014-09-30 16:14:18 -0400
commitce8a4f5cc59c4c6e4a28293959cd3f4b6592e3f0 (patch)
tree7ff8fda93917bbcdaf3322b53f5e6b71a73de8e3 /Source
parent13fc8e7df135e3a0c9298bb4b6ecaf6f0bacf087 (diff)
VideoCommon: Silence -Wmaybe-uninitialized warnings.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp2
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index d71e3e47d2..de815012f7 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -424,7 +424,7 @@ void Fifo_UpdateWantDeterminism(bool want)
// We are paused (or not running at all yet) and have m_csHWVidOccupied, so
// it should be safe to change this.
const SCoreStartupParameter& param = SConfig::GetInstance().m_LocalCoreStartupParameter;
- bool gpu_thread;
+ bool gpu_thread = false;
switch (param.m_GPUDeterminismMode)
{
case GPU_DETERMINISM_AUTO:
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 0e5dbba3cf..ee31d50ff0 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -169,6 +169,7 @@ void Renderer::CalculateTargetScale(int x, int y, int &scaledX, int &scaledY)
bool Renderer::CalculateTargetSize(unsigned int framebuffer_width, unsigned int framebuffer_height)
{
int newEFBWidth, newEFBHeight;
+ newEFBWidth = newEFBHeight = 0;
// TODO: Ugly. Clean up
switch (s_LastEFBScale)