Added opengl hackery