Made GL functions working.