diff options
author | Antia Puentes <[email protected]> | 2015-03-17 19:28:25 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-04-06 08:50:41 +0200 |
commit | c0a7014601ca93d30ba9bf1ec3c6d04da904d503 (patch) | |
tree | c57e6f959ad6cc80a42c927672898999691dacb8 /docs | |
parent | 47597f8f5cfe950093110d2b777923ef85c5d24f (diff) |
glsl: respect the source number set by #line <line> <source>
From GLSL 1.30.10, section 3.3 (Preprocessor):
"#line line source-string-number ... After processing this directive
(including its new-line), the implementation will behave as if it is
compiling at ... source string number source-string-number. Subsequent
source strings will be numbered sequentially, until another #line
directive overrides that numbering."
In the previous implementation the source number was always zero.
Subsequent source strings are still not numbered sequentially, because
in the glShaderSource implementation we are concatenating the source code
strings into one long string.
Partially fixes https://bugs.freedesktop.org/show_bug.cgi?id=88815
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions