Fix warning from uniform conversion template.

Trac #18606 The data loss is as required by the spec. Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@866 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent b7915a55
......@@ -560,7 +560,7 @@ void transposeMatrix(T *target, const GLfloat *value)
{
for (int y = 0; y < copyHeight; y++)
{
target[x * targetWidth + y] = value[y * srcWidth + x];
target[x * targetWidth + y] = (T)value[y * srcWidth + x];
}
}
// clear unfilled right side
......@@ -568,7 +568,7 @@ void transposeMatrix(T *target, const GLfloat *value)
{
for (int x = srcWidth; x < targetWidth; x++)
{
target[y * targetWidth + x] = 0;
target[y * targetWidth + x] = (T)0;
}
}
// clear unfilled bottom.
......@@ -576,7 +576,7 @@ void transposeMatrix(T *target, const GLfloat *value)
{
for (int x = 0; x < targetWidth; x++)
{
target[y * targetWidth + x] = 0;
target[y * targetWidth + x] = (T)0;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment