Don't unlink when detaching shaders.

TRAC #18385 ANGLEBUG=221 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@781 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent a574f78f
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 780
#define BUILD_REVISION 781
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -144,8 +144,6 @@ bool Program::detachShader(Shader *shader)
}
else UNREACHABLE();
unlink();
return true;
}
......@@ -2515,7 +2513,7 @@ void Program::resetInfoLog()
}
}
// Returns the program object to an unlinked state, after detaching a shader, before re-linking, or at destruction
// Returns the program object to an unlinked state, before re-linking, or at destruction
void Program::unlink(bool destroy)
{
if (destroy) // Object being destructed
......
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