mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1072411 - Remove useless format convertion code in ImageClient. r=jrmuizel
This commit is contained in:
parent
2130046b95
commit
5dc44835f0
@ -303,9 +303,7 @@ ImageClientSingle::UpdateImageInternal(ImageContainer* aContainer,
|
||||
|
||||
bool bufferCreated = false;
|
||||
if (!mFrontBuffer) {
|
||||
gfxImageFormat format
|
||||
= gfxPlatform::GetPlatform()->OptimalFormatForContent(gfx::ContentForFormat(surface->GetFormat()));
|
||||
mFrontBuffer = CreateTextureClientForDrawing(gfx::ImageFormatToSurfaceFormat(format), size,
|
||||
mFrontBuffer = CreateTextureClientForDrawing(surface->GetFormat(), size,
|
||||
gfx::BackendType::NONE, mTextureFlags);
|
||||
if (!mFrontBuffer) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user