mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 934412 - Pass surface image format into CreateTextureImage r=nical
This commit is contained in:
parent
6c75dbea68
commit
ef0e39f7ad
@ -250,13 +250,15 @@ TextureImageTextureSourceOGL::Update(gfx::DataSourceSurface* aSurface,
|
||||
size,
|
||||
gfx::ContentForFormat(aSurface->GetFormat()),
|
||||
WrapMode(mGL, aFlags & TEXTURE_ALLOW_REPEAT),
|
||||
FlagsToGLFlags(aFlags));
|
||||
FlagsToGLFlags(aFlags),
|
||||
SurfaceFormatToImageFormat(aSurface->GetFormat()));
|
||||
} else {
|
||||
mTexImage = CreateBasicTextureImage(mGL,
|
||||
size,
|
||||
gfx::ContentForFormat(aSurface->GetFormat()),
|
||||
WrapMode(mGL, aFlags & TEXTURE_ALLOW_REPEAT),
|
||||
FlagsToGLFlags(aFlags));
|
||||
FlagsToGLFlags(aFlags),
|
||||
SurfaceFormatToImageFormat(aSurface->GetFormat()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user