Generate a warning when not writing gl_Position with GLES.
authorKalyan Kondapally <kondapallykalyancontribute@gmail.com>
Thu, 11 Sep 2014 03:20:23 +0000 (20:20 -0700)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 15 Sep 2014 05:14:33 +0000 (08:14 +0300)
commitdbc2d81d2ba12354876eb67c79e8a71e57e97f3c
treedcb868ab8ad91abf66bb80c52fade326dce35103
parent9bd139e4515172d98e91d6ed7364ec3ea5cf623d
Generate a warning when not writing gl_Position with GLES.

With GLES we don't give any kind of warning in case we don't
write to gl_position. This patch makes changes so that we
generate a warning in case of GLES (VER < 300) and an error
in case of GL.

Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/linker.cpp