mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 729726 - Use BGRA-texture-backed FBOs where available. r=bjacob
This commit is contained in:
parent
a1cab9283c
commit
bce6d79d2e
@ -1278,7 +1278,12 @@ GLContext::ChooseGLFormats(ContextFormat& aCF)
|
||||
GLFormats formats;
|
||||
|
||||
if (aCF.alpha) {
|
||||
formats.texColor = LOCAL_GL_RGBA;
|
||||
if (mIsGLES2 && IsExtensionSupported(EXT_texture_format_BGRA8888)) {
|
||||
formats.texColor = LOCAL_GL_BGRA;
|
||||
} else {
|
||||
formats.texColor = LOCAL_GL_RGBA;
|
||||
}
|
||||
|
||||
if (mIsGLES2 && !IsExtensionSupported(OES_rgb8_rgba8)) {
|
||||
formats.rbColor = LOCAL_GL_RGBA4;
|
||||
aCF.red = aCF.green = aCF.blue = aCF.alpha = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user