fixed compressed texture availability check

  - convert available format to real Array
  - test if texture glFormat is found in supported formats

note : the test against supported format before upload log an explicit warning but can't prevent gl warnings during draw call (texture is invalid)
Merge pull request #5348 from makemepulse/bb_tex_warn

improve compressed texture availability check