summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglengineshadermanager.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-02-24 00:15:06 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-02-24 08:03:51 +0000
commit5a7165f2ea4057edaab212d61d5abaf8b3f1bd92 (patch)
tree55ebd55b1020b8ec63d4042dc7e7988029309a88 /src/gui/opengl/qopenglengineshadermanager.cpp
parentf4495d29e5ad46cacf4f30c6da1fcb96c8082d64 (diff)
QtGui: kill some unneeded relocations
Turn arrays of pointers into arrays of arrays. Results on optimized GCC 6.1.1 Linux AMD64 builds: text -264B data -512B relocs -43 Change-Id: I0b64615913d50c286596e66675e89758ce1ec2ba Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/opengl/qopenglengineshadermanager.cpp')
-rw-r--r--src/gui/opengl/qopenglengineshadermanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopenglengineshadermanager.cpp b/src/gui/opengl/qopenglengineshadermanager.cpp
index dd9e8e9d1e..3a94fa8805 100644
--- a/src/gui/opengl/qopenglengineshadermanager.cpp
+++ b/src/gui/opengl/qopenglengineshadermanager.cpp
@@ -532,7 +532,7 @@ GLuint QOpenGLEngineShaderManager::getUniformLocation(Uniform id)
if (uniformLocations.isEmpty())
uniformLocations.fill(GLuint(-1), NumUniforms);
- static const char *const uniformNames[] = {
+ const char uniformNames[][26] = {
"imageTexture",
"patternColor",
"globalOpacity",