Bug 934412 - Pass surface image format into CreateTextureImage r=nical

This commit is contained in:
Edwin Flores 2013-12-11 15:14:16 +01:00
parent 9b1330b3b0
commit 0920b6c4c8

View File

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