mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Bug 934412 - Pass surface image format into CreateTextureImage r=nical
This commit is contained in:
parent
9b1330b3b0
commit
0920b6c4c8
@ -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