mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
avoid cast warning
This commit is contained in:
parent
c4dc96ef71
commit
a5301efed6
|
@ -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++] = c;
|
||||||
textureBuffer[i++] = c;
|
textureBuffer[i++] = c;
|
||||||
textureBuffer[i++] = (texel == 0xFF) ? 0. : 1.;
|
textureBuffer[i++] = (texel == 0xFF) ? 0.f : 1.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
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++] = c;
|
||||||
textureBuffer[i++] = c;
|
textureBuffer[i++] = c;
|
||||||
textureBuffer[i++] = (texel == 0xFF) ? 0. : 1.;
|
textureBuffer[i++] = (texel == 0xFF) ? 0.f : 1.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue