diff options
| author | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-23 14:00:27 -0700 |
|---|---|---|
| committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-23 14:14:57 -0700 |
| commit | 186e2634bfb8f624f3721673964e29428269cd47 (patch) | |
| tree | eb3550a672afa99aa7dc16cb84df4c43ca1cd59b /glcpp/glcpp.h | |
| parent | 12a820c9d84cec0e2f36d9571ca841499b67eac4 (diff) | |
glcpp: Make standalone binary use preprocess().
This prevents the two code paths from getting out of sync. Also, future
work will need the shader source as a string anyway.
Unfortunately, this copies and pastes load_text_file from main.cpp, with
small changes (support for reading from stdin, talloc).
Diffstat (limited to 'glcpp/glcpp.h')
| -rw-r--r-- | glcpp/glcpp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glcpp/glcpp.h b/glcpp/glcpp.h index bb0ac95aed..2cfa98d2b1 100644 --- a/glcpp/glcpp.h +++ b/glcpp/glcpp.h @@ -167,6 +167,9 @@ glcpp_parser_parse (glcpp_parser_t *parser); void glcpp_parser_destroy (glcpp_parser_t *parser); +int +preprocess(void *talloc_ctx, const char **shader, char **info_log); + /* Functions for writing to the info log */ void |
