add opengl 2.0 compactibility