glsl: Set gl_MaxVertexOutputs from VertexProgram.MaxOutputComponents etc
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 10 Sep 2013 17:13:04 +0000 (12:13 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 7 Oct 2013 16:59:23 +0000 (09:59 -0700)
commit7db50171be05016fc0a4501c0fd62ef2bed78fbf
tree787ea96fe2e1794cf052291e8015fbf0cc98b447
parent42305fb50256c12b8e7a516115e72ae7089ccd1b
glsl: Set gl_MaxVertexOutputs from VertexProgram.MaxOutputComponents etc

gl_MaxVertexOutputVectors => ctx->Const.VertexProgram.MaxOutputComponents
gl_MaxFragmentInputVectors => ctx->Const.FragmentProgram.MaxInputComponents

v2: Add types so that the code compiles.  Pointed out by Brian.

v3: Leave gl_MaxVaryingFloats et al. as-is.  Suggested by Paul.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com> [v2]
Reviewed-by: Marek Olšák <marek.olsak@amd.com> [v2]
Reviewed-by: Paul Berry <stereotype441@gmail.com> [v2]
src/glsl/builtin_variables.cpp