repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
glx-multithread-texture: Avoid front-buffer rendering.
[piglit.git]
/
tests
/
glslparsertest
/
shaders
/
constFunc.frag
blob
378261e659a36176d146bd7ccdfb7187f374224c
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.10
4
//
5
// [end config]
6
7
vec2 func()
8
{
9
vec2 v;
10
return v;
11
}
12
13
void main()
14
{
15
const vec3 v = vec3(1.0, func()); // user defined functions do not return const value
16
gl_FragColor = vec4(v, v);
17
}