Fix a number of issues converting GL to BitmapEx.

Change-Id: Ic6f0d4859f82d5afa4608a37697d2d10cc3f0cef