glcpp: Accept pointer to GL context rather than just the API version
authorCarl Worth <cworth@cworth.org>
Wed, 5 Dec 2012 20:56:16 +0000 (12:56 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 11 Jan 2013 21:55:41 +0000 (13:55 -0800)
commitf8987f99720c46dda1adfff05bcb2884cac01bd8
treed9c04d673340c47d6c1661a27fa3729f1546bc54
parent4b00ecebd0019202315f0f4a9e6105d962e659f7
glcpp: Accept pointer to GL context rather than just the API version

As the preprocessor becomes more sophisticated and gains more optional
behavior, it's easiest to just pass the GL context pointer to it so that
it can examine any fields there that it needs to (such as API version,
or the state of any driconf options, etc.).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glcpp/glcpp.c
src/glsl/glcpp/glcpp.h
src/glsl/glcpp/pp.c
src/glsl/glsl_parser_extras.h
src/glsl/main.cpp
src/glsl/test_optpass.cpp
src/mesa/program/ir_to_mesa.cpp