glReleaseShaderCompiler — release resources allocated by the shader compiler
For implementations that support a shader compiler,
frees resources allocated by the shader compiler. This is a hint from the application
that additional shader compilations are unlikely to occur, at least for some period of time,
and that the resources consumed by the shader compiler may be released and put to better use
However, if a call to glCompileShader
is made after a call to
glReleaseShaderCompiler, the shader compiler must be restored
to service the compilation request as if
glReleaseShaderCompiler had never been called.
Shader compiler support is optional, and thus must be queried
before use by calling glGet
GL_INVALID_OPERATION on implementations
that do not support a shader compiler. Such implementations instead offer the
alternative for supplying a pre-compiled shader binary.
Copyright © 2008 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.