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
arb_framebuffer_object: add missing MSAA alpha-to-coverage and alpha-to-one tests
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
compiler
/
infinite-loop-while.frag
blob
60e36a450e04967c1129b2b17fc4014990f42a1b
1
/* [config]
2
* expect_result: pass
3
* glsl_version: 1.10
4
* [end config]
5
*
6
*
7
* From Section 6.3 (Iteration) the GLSL 4.60 spec:
8
* "Non-terminating loops are allowed. The consequences of very long or non-terminating
9
* loops are platform dependent."
10
*
11
*/
12
13
uniform bool k;
14
void main()
15
{
16
gl_FragColor = vec4(1.5);
17
if(!k) return;
18
while(k) {
19
gl_FragColor += vec4(1.5);
20
}
21
}
22