FX materials can now use material properties before and after type is set

This commit is contained in:
n00b87
2025-08-22 21:19:23 -05:00
parent ee5395bd66
commit ab9238cdb8
4 changed files with 164 additions and 161 deletions

View File

@@ -28,7 +28,10 @@ bool createShaderMaterial(int material_id, int fx_material_type)
//std::cout << "Shader Index = " << shader_index << std::endl;
rc_material[material_id].shader = new CShader(device, rc_shader_materials[shader_index]);
rc_material[material_id].shader = NULL;
if(device)
rc_material[material_id].shader = new CShader(device, rc_shader_materials[shader_index]);
if(rc_material[material_id].shader)
{