glsl/standalone: Use API_OPENGL_CORE if the GLSL version is >= 1.40
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 14 Sep 2016 20:51:19 +0000 (13:51 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 27 Sep 2016 19:06:46 +0000 (12:06 -0700)
commit798d1b8816fed0a88674c6d89d56e478519a5a55
treee7e2c66e29393a9700a0a81835801d476fbb8d30
parentafd99734db400ad5c0357735f239d45436809b7e
glsl/standalone: Use API_OPENGL_CORE if the GLSL version is >= 1.40

Otherwise extensions to 1.40 that are only for core profile won't work.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/standalone.cpp