Check GL_EXT_texture_format_BGRA8888 before GL_APPLE_texture_format_BGRA8888

When both GL_EXT_texture_format_BGRA8888 and GL_APPLE_texture_format_BGRA8888
extensions are present, the presence of GL_APPLE_texture_format_BGRA8888 was
preventing GL_EXT_texture_format_BGRA8888 from allowing BGRA8888 to be used
as a render target. By checking for GL_EXT_texture_format_BGRA8888 first,
this solves the issue.

The issue was encountered trying to run vr_pixeltests on top of SwiftShader
on the bots with a version of SwiftShader exposing both extension strings.

Cherry-pick of 0e90f9849a7ba4c745478694f0b2c99736561830 to skqp/dev

No-Tree-Checks: true
No-Try: true
No-Presubmit: true
Bug: skia:7790
Change-Id: I4408c983af74c73cd9866dcef871a7c3ac4e103e
Reviewed-on: https://skia-review.googlesource.com/122041
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
1 file changed