Fixed OpenGL3

Texture binding I had was all wrong and extremely slow, glGet is very bad. The map still needs fixed though, so that it includes the different texture stages as well as the different targets, eg. GL_TEXTURE_3D