adding opengl support