Little changes to try and get opengl to work properly