Cross plattform fix for glUniform1f