[Mesa-dev] [Bug 97420] "#version 0" crashes glsl_compiler

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 23 04:33:55 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97420

--- Comment #2 from Timothy Arceri <t_arceri at yahoo.com.au> ---
Looks like version is set twice. Once explicitly by the shader and once by
glcpp_parser_resolve_implicit_version() as we no longer set a bool to skip the
implicit call but check the version which is zero in this case.

_glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t
versio
                                          const char *es_identifier,
                                          bool explicitly_set)
 {
-   if (parser->version_resolved)
+   if (parser->version != 0)
       return;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160823/313dd358/attachment.html>


More information about the mesa-dev mailing list