Terrible sorcery. Probably works with OpenGL 3.2 now.