Even more code using OpenGL ES. Fixed terrain texturing on windows.