diff options
| author | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2012-08-14 14:50:24 +0800 |
|---|---|---|
| committer | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2012-08-14 14:50:24 +0800 |
| commit | d614ab24da6a392d53cdd1cad4fdd7081bdecd9d (patch) | |
| tree | 854e5e29fe097552efd384415956b6f7208b13ee /unity-shared | |
| parent | 4440ded29e52b1862a11a8b04c8ba8c9251b693d (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.cpp | 4 |
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; |
