glsl: Compute version_string on the fly.
authorPaul Berry <stereotype441@gmail.com>
Thu, 2 Aug 2012 13:45:30 +0000 (06:45 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 6 Dec 2012 20:13:21 +0000 (12:13 -0800)
commitdc9f9d8e66ac3ec934a82d25da7b76902f775802
tree1b316c5a26a3d71636759c420bb3061c36d9ac75
parentd9bfaa104ed4debeff6c7d69daf4d9cc85cadb8d
glsl: Compute version_string on the fly.

Fixes a bug where version_string would be left uninitialized if no
GLSL "#version" directive was used.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Carl Worth <cworth@cworth.org>
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.h