implemented nuiShaderState::Apply
fixed const correctness