Fixed texture format declaration
Implemented OpenGL version detection
Dropped DX9 and CG support