Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.1, 5.2.0 Beta1 , 5.3.0 Beta1
-
Linux, Ubuntu 12.04 32-bit
-
44b16b06983ac3661f485ccfb3ffe88ba586d557 d453b38415adcaef814ec54c3419673d2dbf4ce7.
Description
Download the latest Qt5.1.1 opensource offline installer (linux 32-bit installer used while testing).
Compile an example from 5.1.1-rc1/gcc/examples/quick/scenegraph/graph and try to launch it. Error occurs (see the attached .txt file for console output):
tasundqv@IT-D-2VFR5W1:~/tmp/qt5/5.1.1-rc1/gcc/examples/quick/scenegraph/graph$ ./graph QOpenGLShader::compile(Fragment): 0:59(1): error: syntax error, unexpected INTCONSTANT, expecting $end *** Problematic Fragment shader source code *** #define lowp #define mediump #define highp uniform sampler2D texture; uniform lowp float qt_Opacity; uniform lowp vec4 color; varying highp vec2 vTexCoord; varying lowp vec2 vShadeCoord; #define PI 3.14159265359 void main() { lowp float shade = texture2D(texture, vTexCoord).r * 0.05 - length(vec2(0.5, 0.4) - vShadeCoord) * 0.3; lowp vec4 c = vec4(color.xyz + shade, color.w); gl_FragColor = c * qt_Opacity; } 5Graph *** QSGSimpleMaterialShader does not implement 'uniform lowp float qt_Opacity' in its fragment shader Aborted (core dumped)
Attachments
For Gerrit Dashboard: QTBUG-33080 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
81769,2 | Fix reading of shader sources in scene graph example | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |