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:
Kyle 2015-07-21 15:24:45 -04:00
Родитель 7d42edc3e6
Коммит 736a4661d2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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