diff options
| author | MC Return <mc.return@gmx.net> | 2012-07-30 19:29:12 +0200 |
|---|---|---|
| committer | MC Return <mc.return@gmx.net> | 2012-07-30 19:29:12 +0200 |
| commit | b3e22bce0ac9e368c76ad7bbbe22230991e51c71 (patch) | |
| tree | e0a626e051e5131040afa714d514cbd47835bd6b /unity-shared | |
| parent | abe9951aadc4eaadd4638019cbff7d94792696f0 (diff) | |
Reduced the scope of the variable 'TextureObjectLocation' in IconRenderer.cpp
(bzr r2528.1.22)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/IconRenderer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unity-shared/IconRenderer.cpp b/unity-shared/IconRenderer.cpp index 9a7d7c9fe..ed1fa65e6 100644 --- a/unity-shared/IconRenderer.cpp +++ b/unity-shared/IconRenderer.cpp @@ -757,7 +757,6 @@ void IconRenderer::RenderElement(nux::GraphicsEngine& GfxContext, CHECKGL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0)); CHECKGL(glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0)); - int TextureObjectLocation; int VertexLocation; int TextureCoord0Location; int FragmentColor = 0; @@ -768,7 +767,7 @@ void IconRenderer::RenderElement(nux::GraphicsEngine& GfxContext, { local::shader_program_uv_persp_correction->Begin(); - TextureObjectLocation = local::shader_program_uv_persp_correction->GetUniformLocationARB("TextureObject0"); + int TextureObjectLocation = local::shader_program_uv_persp_correction->GetUniformLocationARB("TextureObject0"); VertexLocation = local::shader_program_uv_persp_correction->GetAttributeLocation("iVertex"); TextureCoord0Location = local::shader_program_uv_persp_correction->GetAttributeLocation("iTexCoord0"); FragmentColor = local::shader_program_uv_persp_correction->GetUniformLocationARB("color0"); |
