| 484 | } |
| 485 | |
| 486 | void GLSLShader::attachToProgramObject( const GLuint programObject ) |
| 487 | { |
| 488 | // attach child objects |
| 489 | GLSLShaderContainerIterator childProgramCurrent = mAttachedGLSLShaders.begin(); |
| 490 | GLSLShaderContainerIterator childProgramEnd = mAttachedGLSLShaders.end(); |
| 491 | |
| 492 | for( ; childProgramCurrent != childProgramEnd; ++childProgramCurrent ) |
| 493 | { |
| 494 | GLSLShader *childShader = *childProgramCurrent; |
| 495 | childShader->compile( true ); |
| 496 | childShader->attachToProgramObject( programObject ); |
| 497 | } |
| 498 | OGRE_CHECK_GL_ERROR( glAttachShader( programObject, mGLShaderHandle ) ); |
| 499 | } |
| 500 | |
| 501 | void GLSLShader::detachFromProgramObject( const GLuint programObject ) |
| 502 | { |
no test coverage detected