From Patrick Neary, "In ShaderComposer::getOrCreateProgram(), tesselation control and evaluation shaders are processed but not added to the shader program."
This commit is contained in:
@@ -105,11 +105,21 @@ osg::Program* ShaderComposer::getOrCreateProgram(const ShaderComponents& shaderC
|
||||
addShaderToProgram(program.get(), vertexShaders);
|
||||
}
|
||||
|
||||
if (!tessControlShaders.empty())
|
||||
{
|
||||
addShaderToProgram(program.get(), tessControlShaders);
|
||||
}
|
||||
|
||||
if (!geometryShaders.empty())
|
||||
{
|
||||
addShaderToProgram(program.get(), geometryShaders);
|
||||
}
|
||||
|
||||
if (!tessEvaluationShaders.empty())
|
||||
{
|
||||
addShaderToProgram(program.get(), tessEvaluationShaders);
|
||||
}
|
||||
|
||||
if (!fragmentShaders.empty())
|
||||
{
|
||||
addShaderToProgram(program.get(), fragmentShaders);
|
||||
|
||||
Reference in New Issue
Block a user