mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1001682 - Don't reverse the R and B components in the GL CopyDataSourceSurface code for SurfaceFormat::R5G6B5. r=mattwoodrow
This commit is contained in:
parent
177f1467fe
commit
e619ecaddc
@ -262,8 +262,7 @@ static void CopyDataSourceSurface(DataSourceSurface* aSource,
|
||||
|
||||
bool needsRBSwap = false;
|
||||
if (aDest->GetFormat() == SurfaceFormat::B8G8R8A8 ||
|
||||
aDest->GetFormat() == SurfaceFormat::B8G8R8X8 ||
|
||||
aDest->GetFormat() == SurfaceFormat::R5G6B5) {
|
||||
aDest->GetFormat() == SurfaceFormat::B8G8R8X8) {
|
||||
needsRBSwap = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user