fix the crash invoked by calling the `glGetUniformfv`