diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-07-19 15:39:22 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-08-02 14:11:02 -0700 |
commit | 88b714a2b9c7c11ceb4aeb305a0c0c799ff07922 (patch) | |
tree | f344c79eb8cea8bad8c34a0fe970ca6f7dcc3d6c /tests/shaders/glsl-link-initializer-01c.vert | |
parent | a8b9c1f8d6e4ba9b94239efe3bab88832e4e9fd3 (diff) |
Add test for GLSL linker handling of initializers
All of these except glsl-link-initializer-05 pass on Nvidia
close-source drivers.
Diffstat (limited to 'tests/shaders/glsl-link-initializer-01c.vert')
-rw-r--r-- | tests/shaders/glsl-link-initializer-01c.vert | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shaders/glsl-link-initializer-01c.vert b/tests/shaders/glsl-link-initializer-01c.vert new file mode 100644 index 000000000..e8dba5e0f --- /dev/null +++ b/tests/shaders/glsl-link-initializer-01c.vert @@ -0,0 +1,6 @@ +float global_variable = 2.0; + +/* This works around a bug in Apple's GLSL compiler. Their compiler won't allow + * a shader doesn't have any executable code. + */ +void apple_work_around2() {} |