From Per Fahlberg, "Attached is a fix allowing removal of shaders from a program after it is

first compiled. It will also allow new shaders to be attached after the
program is first compiled."
This commit is contained in:
Robert Osfield
2007-12-11 11:21:13 +00:00
parent 62bba8e52b
commit 4e5ce63c85
4 changed files with 53 additions and 2 deletions

View File

@@ -99,6 +99,9 @@ class OSG_EXPORT Shader : public osg::Object
/** For a given GL context, attach a glShader to a glProgram */
void attachShader(unsigned int contextID, GLuint program) const;
/** For a given GL context, detach a glShader to a glProgram */
void detachShader(unsigned int contextID, GLuint program) const;
/** Query InfoLog from a glShader */
bool getGlShaderInfoLog(unsigned int contextID, std::string& log) const;