示例#1
0
void CM_ShutdownShaderProperties(void)
{
	if(cmShaderTable.count())
	{
//		Com_Printf("Shutting down cmShaderTable .....\n");
		cmShaderTable.clear();
	}
}
示例#2
0
void CM_FreeShaderText(void)
{
	shaderTextTable.clear();
	if(shaderText)
	{
		Z_Free(shaderText);
		shaderText = NULL;
	}
}
示例#3
0
void CM_FreeShaderText(void)
{
	shaderTextTable.clear();
	// We NEVER free the shadertext anymore!
//	if(shaderText)
//	{
//		Z_Free(shaderText);
//		shaderText = NULL;
//	}
}
示例#4
0
//rwwFIXMEFIXME: Called at RE_BeginRegistration because Hunk_Clear
//destroys the memory cmShaderTable is on. This is a temp solution
//I guess.
void ShaderTableCleanup()
{
	cmShaderTable.clear();
}