OpenGL ES2 fixes

 * Required to build against OpenGL ES2 on a system with SDL2 which supports OpenGL and  OpenGL ES2
 * Required to run on a system with many texture units (> 8)
 * Required when using Mipmapping