aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickshadereffectnode.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-11-23 17:12:49 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-23 18:45:51 +0100
commit417403f803c03d177c8563878e06b95a15f0d4df (patch)
tree49a939f5a359a9b1f405801350c42aed27c08920 /src/quick/items/qquickshadereffectnode.cpp
parentbe197c62c09c31de2956eeb6fc11024a2c77f0ca (diff)
Reduce number of relocations
...by turning pointer into array variables. Change-Id: Ia5a0cedcf28d54210cc1f179db5c519e7e0672cc Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/quick/items/qquickshadereffectnode.cpp')
-rw-r--r--src/quick/items/qquickshadereffectnode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickshadereffectnode.cpp b/src/quick/items/qquickshadereffectnode.cpp
index 7d7955c92a..622000e492 100644
--- a/src/quick/items/qquickshadereffectnode.cpp
+++ b/src/quick/items/qquickshadereffectnode.cpp
@@ -273,11 +273,11 @@ void QQuickCustomMaterialShader::compile()
m_log += program()->log();
}
- static const char *fallbackVertexShader =
+ static const char fallbackVertexShader[] =
"uniform highp mat4 qt_Matrix;"
"attribute highp vec4 v;"
"void main() { gl_Position = qt_Matrix * v; }";
- static const char *fallbackFragmentShader =
+ static const char fallbackFragmentShader[] =
"void main() { gl_FragColor = vec4(1., 0., 1., 1.); }";
if (!m_compiled) {