public void AttachToProgramObject( int programObject )
{
// atach child objects
foreach (var childShader in attachedGLSLPrograms.Cast<GLSLProgram>())
{
// bug in ATI GLSL linker : modules without main function must be recompiled each time
// they are linked to a different program object
// don't check for compile errors since there won't be any
// *** minor inconvenience until ATI fixes thier driver
childShader.Compile( false );
childShader.AttachToProgramObject( programObject );
}
Gl.glAttachObjectARB(programObject, GLHandle);
GLSLHelper.CheckForGLSLError("GLSL : Error attaching " + this.Name + " shader object to GLSL Program Object.", programObject);
}