Decoupling core from GL stuff.