glsl: guard gl_NumSamples enablement on ARB_sample_shading
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 18 Jun 2015 23:08:24 +0000 (19:08 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 19 Jun 2015 00:40:22 +0000 (20:40 -0400)
commit5974841fd0be7e2c336f63bd9ef416723e1923dc
treee50fbefa321aff7181b260eb9c2cf700b78a875b
parent22af95af8316f2888a3935cdf774ff0997b3dd42
glsl: guard gl_NumSamples enablement on ARB_sample_shading

gl_NumSamples should only be enabled when ARB_sample_shading is enabled.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/builtin_variables.cpp