summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorDaniel van Vugt <daniel.van.vugt@canonical.com>2012-08-14 14:50:24 +0800
committerDaniel van Vugt <daniel.van.vugt@canonical.com>2012-08-14 14:50:24 +0800
commitd614ab24da6a392d53cdd1cad4fdd7081bdecd9d (patch)
tree854e5e29fe097552efd384415956b6f7208b13ee /unity-shared
parent4440ded29e52b1862a11a8b04c8ba8c9251b693d (diff)
Fix uninitialized variable warnings, causing build failure (LP: #1036514)
You'd only see these errors if you build lp:unity with: -DUSE_MODERN_COMPIZ_GL=ON Fixes LP: #1036514 (bzr r2558.1.1)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/IconRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unity-shared/IconRenderer.cpp b/unity-shared/IconRenderer.cpp
index ed1fa65e6..2c37cc89c 100644
--- a/unity-shared/IconRenderer.cpp
+++ b/unity-shared/IconRenderer.cpp
@@ -757,8 +757,8 @@ void IconRenderer::RenderElement(nux::GraphicsEngine& GfxContext,
CHECKGL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0));
CHECKGL(glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0));
- int VertexLocation;
- int TextureCoord0Location;
+ int VertexLocation = -1;
+ int TextureCoord0Location = -1;
int FragmentColor = 0;
int ColorifyColor = 0;
int DesatFactor = 0;