setup opengl render environment
add fix