зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1186129 - Fix assignment of alpha in pack premultiply RA16F. Also made a cosmetic change to the assignment of alpha in pack premultiply RA32F so that it is more consistent with the other pack functions. r=jgilbert
This commit is contained in:
Родитель
7d42edc3e6
Коммит
736a4661d2
|
@ -892,7 +892,7 @@ pack<WebGLTexelFormat::RA32F, WebGLTexelPremultiplicationOp::Premultiply, float,
|
|||
{
|
||||
float scaleFactor = src[3];
|
||||
dst[0] = src[0] * scaleFactor;
|
||||
dst[1] = scaleFactor;
|
||||
dst[1] = src[3];
|
||||
}
|
||||
|
||||
template<> MOZ_ALWAYS_INLINE void
|
||||
|
@ -1011,7 +1011,7 @@ pack<WebGLTexelFormat::RA16F, WebGLTexelPremultiplicationOp::Premultiply, uint16
|
|||
{
|
||||
float scaleFactor = unpackFromFloat16(src[3]);
|
||||
dst[0] = packToFloat16(unpackFromFloat16(src[0]) * scaleFactor);
|
||||
dst[1] = scaleFactor;
|
||||
dst[1] = src[3];
|
||||
}
|
||||
|
||||
template<> MOZ_ALWAYS_INLINE void
|
||||
|
|
Загрузка…
Ссылка в новой задаче