Test program decoupled from OpenGL to try and catch the elusive segfault.