Fixed Mac error
Use core function
Log the shader type
Fixed Mac errors