зеркало из https://github.com/mozilla/gecko-dev.git
Bug 859021 followup: Add missing "f" suffixes for float-valued numeric literals, even where it's not strictly required by MSVC build warnings.
This commit is contained in:
Родитель
a0a4661570
Коммит
d3897ff497
|
@ -720,12 +720,12 @@ GenerateNormal(float *N, const uint8_t *data, int32_t stride,
|
|||
{ { -1, -2, 0}, { 1, 2, 0}, { 0, 0, 0} } } };
|
||||
static const float FACTORx[3][3] =
|
||||
{ { 2.0f / 3.0f, 1.0f / 3.0f, 2.0f / 3.0f },
|
||||
{ 1.0 / 2.0, 1.0 / 4.0, 1.0 / 2.0 },
|
||||
{ 1.0f / 2.0f, 1.0f / 4.0f, 1.0f / 2.0f },
|
||||
{ 2.0f / 3.0f, 1.0f / 3.0f, 2.0f / 3.0f } };
|
||||
static const float FACTORy[3][3] =
|
||||
{ { 2.0f / 3.0f, 1.0 / 2.0, 2.0f / 3.0f },
|
||||
{ 1.0f / 3.0f, 1.0 / 4.0, 1.0f / 3.0f },
|
||||
{ 2.0f / 3.0f, 1.0 / 2.0, 2.0f / 3.0f } };
|
||||
{ { 2.0f / 3.0f, 1.0f / 2.0f, 2.0f / 3.0f },
|
||||
{ 1.0f / 3.0f, 1.0f / 4.0f, 1.0f / 3.0f },
|
||||
{ 2.0f / 3.0f, 1.0f / 2.0f, 2.0f / 3.0f } };
|
||||
|
||||
// degenerate cases
|
||||
if (surfaceWidth == 1 || surfaceHeight == 1) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче