void CM_ShutdownShaderProperties(void) { if(cmShaderTable.count()) { // Com_Printf("Shutting down cmShaderTable .....\n"); cmShaderTable.clear(); } }
void CM_FreeShaderText(void) { shaderTextTable.clear(); if(shaderText) { Z_Free(shaderText); shaderText = NULL; } }
void CM_FreeShaderText(void) { shaderTextTable.clear(); // We NEVER free the shadertext anymore! // if(shaderText) // { // Z_Free(shaderText); // shaderText = NULL; // } }
//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(); }