Provide an error message when uniform linking fails.

TRAC #22635 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1955 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent e2e9798b
......@@ -2064,8 +2064,15 @@ bool ProgramBinary::defineUniform(GLenum shader, const sh::Uniform &constant, In
{
uniform = mUniforms[mUniformIndex[location].index];
if (uniform->type != constant.type || uniform->precision != constant.precision)
if (uniform->type != constant.type)
{
infoLog.append("Types for uniform %s do not match between the vertex and fragment shader", uniform->name.c_str());
return false;
}
if (uniform->precision != constant.precision)
{
infoLog.append("Precisions for uniform %s do not match between the vertex and fragment shader", uniform->name.c_str());
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment