glsl/linker: Fail to link geometry shader without vertex shader.
authorFabian Bieler <fabianbieler@fastmail.fm>
Fri, 24 May 2013 21:26:54 +0000 (23:26 +0200)
committerPaul Berry <stereotype441@gmail.com>
Fri, 2 Aug 2013 03:23:21 +0000 (20:23 -0700)
commitbd85ba08bc0593e3fb53003209a3d569d006a98e
tree55750aabfa0c74087e837cad8123331b0e018e19
parent8cdbe8394e01964a362649d0aa69ce7d48124373
glsl/linker: Fail to link geometry shader without vertex shader.

From section 2.15 (Geometry Shaders) the OpenGL 3.2 spec:

    A program object that includes a geometry shader must also include
    a vertex shader; otherwise a link error will occur.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/linker.cpp