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:
Jonathan Watt 2014-04-29 00:26:53 +01:00
parent 177f1467fe
commit e619ecaddc

View File

@ -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;
}