blob: 777d06917e135b0b79d6d3de92b0d9eade864257 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// [config]
// expect_result: fail
// glsl_version: 1.00
// [end config]
//
// Vector types cannot have default precision.
//
// From section 4.5.3 of the GLSL 1.00 spec:
// The precision statement
// precision precision-qualifier type;
// can be used to establish a default precision qualifier. The type field
// can be either int or float. [...] Any other types or qualifiers will
// result in an error.
#version 100
precision mediump vec2;
float f() {
return 0.0;
}
|