From 248a8d6c76b18513f10be0df9742a6fb0093f0f8 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 9 May 2014 04:02:05 +0200 Subject: [PATCH] move the declaration to the top of the file Change-Id: I6b062a4a1c5c4e64846cecd2fd44549de9c516a8 --- chart2/source/view/main/GL3DRenderer.cxx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx index acd631e9e759..f5b8d783cf71 100644 --- a/chart2/source/view/main/GL3DRenderer.cxx +++ b/chart2/source/view/main/GL3DRenderer.cxx @@ -55,6 +55,13 @@ int static checkGLError(const char *file, int line) #define CHECK_GL_ERROR() checkGLError(__FILE__, __LINE__) +GLfloat texCoords[] = { + 0.0f, 0.0f, + 1.0f, 0.0f, + 1.0f, 1.0f, + 0.0f, 1.0f +}; + } OpenGL3DRenderer::OpenGL3DRenderer(): @@ -94,17 +101,6 @@ OpenGL3DRenderer::OpenGL3DRenderer(): m_RoundBarMesh.iMeshSizes = 0; } -namespace { - -GLfloat texCoords[] = { - 0.0f, 0.0f, - 1.0f, 0.0f, - 1.0f, 1.0f, - 0.0f, 1.0f -}; - -} - void OpenGL3DRenderer::LoadShaders() { m_3DProID = OpenGLHelper::LoadShaders("shape3DVertexShader", "shape3DFragmentShader");