How do I clean memory from a shader?
Posted: Wed Feb 23, 2011 1:28 pm
I have this in my app for creating a shader:
I use this shader for a time to render a object, later I don't need it so I would like to free memory for this shader. How do I clean the material with "id_material" from the scene?
Thanks and sorry for my English
Code: Select all
id_material = gpu->addHighLevelShaderMaterial(
vs_code.c_str (), vs_main_name.c_str (), vsType,
ps_code.c_str (), ps_main_name.c_str (), psType,
callback, (E_MATERIAL_TYPE)material_type);
Thanks and sorry for my English