Lines 116-122
Link Here
|
116 |
"void main() {" |
116 |
"void main() {" |
117 |
" vec4 tmpFragColor = texture(textureSampler, uv);" |
117 |
" vec4 tmpFragColor = texture(textureSampler, uv);" |
118 |
" tmpFragColor.a *= opacity;" |
118 |
" tmpFragColor.a *= opacity;" |
|
|
119 |
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN |
119 |
" fragcolor = swizzle ? tmpFragColor.bgra : tmpFragColor;" |
120 |
" fragcolor = swizzle ? tmpFragColor.bgra : tmpFragColor;" |
|
|
121 |
#else |
122 |
" fragcolor = swizzle ? tmpFragColor.gbar : tmpFragColor;" |
123 |
#endif |
120 |
"}"; |
124 |
"}"; |
121 |
|
125 |
|
122 |
static const char vertex_shader[] = |
126 |
static const char vertex_shader[] = |
Lines 138-144
Link Here
|
138 |
"void main() {" |
142 |
"void main() {" |
139 |
" highp vec4 tmpFragColor = texture2D(textureSampler,uv);" |
143 |
" highp vec4 tmpFragColor = texture2D(textureSampler,uv);" |
140 |
" tmpFragColor.a *= opacity;" |
144 |
" tmpFragColor.a *= opacity;" |
|
|
145 |
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN |
141 |
" gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;" |
146 |
" gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;" |
|
|
147 |
#else |
148 |
" gl_FragColor = swizzle ? tmpFragColor.gbar : tmpFragColor;" |
149 |
#endif |
142 |
"}"; |
150 |
"}"; |
143 |
|
151 |
|
144 |
static const char fragment_shader_external_oes[] = |
152 |
static const char fragment_shader_external_oes[] = |
Lines 150-156
Link Here
|
150 |
"void main() {" |
158 |
"void main() {" |
151 |
" highp vec4 tmpFragColor = texture2D(textureSampler, uv);" |
159 |
" highp vec4 tmpFragColor = texture2D(textureSampler, uv);" |
152 |
" tmpFragColor.a *= opacity;" |
160 |
" tmpFragColor.a *= opacity;" |
|
|
161 |
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN |
153 |
" gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;" |
162 |
" gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;" |
|
|
163 |
#else |
164 |
" gl_FragColor = swizzle ? tmpFragColor.gbar : tmpFragColor;" |
165 |
#endif |
154 |
"}"; |
166 |
"}"; |
155 |
|
167 |
|
156 |
static const GLfloat vertex_buffer_data[] = { |
168 |
static const GLfloat vertex_buffer_data[] = { |