Merge change 3083

* changes:
  Generalize bitmap support and add remaining GL formats. Fix bug in command fifo looping case.