avoid cast warning

This commit is contained in:
Ian Curtis 2016-04-17 00:02:16 +00:00
parent c4dc96ef71
commit a5301efed6

View file

@ -282,7 +282,7 @@ void CLegacy3D::DecodeTexture(int format, int x, int y, int width, int height)
textureBuffer[i++] = c;
textureBuffer[i++] = c;
textureBuffer[i++] = c;
textureBuffer[i++] = (texel == 0xFF) ? 0. : 1.;
textureBuffer[i++] = (texel == 0xFF) ? 0.f : 1.f;
}
}
break;
@ -311,7 +311,7 @@ void CLegacy3D::DecodeTexture(int format, int x, int y, int width, int height)
textureBuffer[i++] = c;
textureBuffer[i++] = c;
textureBuffer[i++] = c;
textureBuffer[i++] = (texel == 0xFF) ? 0. : 1.;
textureBuffer[i++] = (texel == 0xFF) ? 0.f : 1.f;
}
}
break;